Shai Berger
27f3f34136
Fixed #13245 : Explained Oracle's behavior w.r.t db_table
...
and how to prevent table-name truncation
Thanks russellm & timo for discussion, and timo for review.
Backported from master 317040a73b
2013-10-23 15:01:05 +03:00
Juergen Schackmann
f198abc7e4
[1.6.x] Fixed #21212 -- Documented the reverse name for OneToOneField.
...
Thanks bjb at credil.org for the report.
Backport of f8632572ad
from master
2013-10-18 16:22:41 -04:00
Tim Graham
06b149e220
[1.6.x] Fixed #10913 -- Documented how related_name affects QuerySet filtering
...
Thanks neithere for the suggestion.
Backport of 75bb6ba966
from master
2013-10-02 12:13:44 -04:00
mlissner
14f76b15c4
[1.6.x] Correct very minor typo
...
Just changed as to has.
Backport of d8f2d940cc
from master
2013-09-21 18:18:42 -04:00
Matt Austin
a929adfd3b
[1.6.x] Fixed #21095 -- Documented new requirement for dates lookups.
...
Day, month, and week_day lookups now require time zone definitions in the database.
Backport of 9451d8d
from master.
2013-09-13 10:20:13 +02:00
Tim Graham
01ad508514
[1.6.x] Fixed spelling; refs #16895 .
...
Thanks Panagiotis Issaris for the report.
Backport of fb51c9a0f2
from master
2013-09-09 11:31:25 -04:00
e0ne
276e053803
[1.6.x] Fixed #16895 -- Warned about cost of QuerySet ordering
...
Thanks outofculture at gmail.com for the suggestion.
Backport of cbf08c6b0c
from master
2013-09-09 09:49:15 -04:00
Aymeric Augustin
01edcf70f2
Fixed #20409 -- Clarified how unique_for_date works when USE_TZ is set.
2013-09-07 14:09:52 -05:00
Eric Boersma
180b9955cc
[1.6.x] Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.
...
The documentation and comments now all use 'an' to
refer to the word SQL and not 'a'.
Backport of 4d13cc56de
from master
2013-09-05 20:16:14 -04:00
Tim Graham
0089a9a854
[1.6.x] Fixed typo in docs/ref/models/options.txt
...
Backport of a89c856a7a
from master
2013-08-30 21:07:04 -04:00
Anssi Kääriäinen
76e38a2177
[1.6.x] Fixed #20988 -- Added model meta option select_on_save
...
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649
Backport of e973ee6a98
from master
Conflicts:
django/db/models/options.py
tests/basic/tests.py
2013-08-30 09:47:34 +03:00
Kevin Christopher Henry
69a4594cb7
[1.6.x] Documentation -- Corrected error about Model.full_clean()
...
Although the ModelForm validation code was changed to call
Model.full_clean(), the documentation still said otherwise. The
offending phrase was removed.
Backport of bb011cf809
from master
2013-08-21 17:46:18 -04:00
Kevin Christopher Henry
e7d4d41a30
[1.6.x] Documentation - Noted that OneToOneField doesn't respect unique.
...
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
2013-08-20 21:20:55 -07:00
Christopher Medrela
6264e39c34
[1.6.x] Added note to GenericIPAddressField documentation
...
refs #20484
Backport of fb26c4996a
from master
2013-08-08 05:17:54 -04:00
Jimmy Song
ea7bef318f
[1.6.x] Fixed #20859 - Clarified Model.clean() example.
...
Backport of 94d7fed775
from master
2013-08-05 09:06:36 -04:00
Daniele Procida
74205c4a3c
[1.6.x] Fixed #20842 and #20845 - Added a note on order_by() and improved prefetch_related() docs.
...
Backport of e8183a8193
from master
2013-08-04 12:35:31 -04:00
Tim Graham
b3e54f4a01
[1.6.x] Removed unused model option "admin"
...
Backport of 5df84b268d
from master
2013-08-01 12:33:19 -04:00
Tim Graham
1c8e539a77
[1.6.x] Fixed #17528 -- Documented that add() and remove() with a many-to-many relationship do not call Model.save()
...
Backport of 3cdeb572d7
from master
2013-07-12 06:22:19 -04:00
Christopher Medrela
9bb04b1a6b
[1.6.x] Fixed #20735 -- clarified ManyToManyField constructor doc
...
Backport of ac223ff6d1
from master
2013-07-12 06:06:17 -04:00
Claude Paroz
a9dd6221af
[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__
...
Thanks Marc Tamlyn and Tim Graham for the review.
Backport of 7442eb1a24
from master.
2013-07-05 19:30:08 +02:00
Tim Graham
430aae1b0d
[1.6.x] Fixed #20561 -- Emphasized that QuerySet.distinct([*fields]) is only supported by Postgres.
...
Thanks jtiai for the suggestion.
Backport of 577b0f9189
from master.
2013-07-05 07:21:13 -04:00
Tim Graham
9687e387d8
[1.6.x] Fixed #12579 -- Noted QuerySet.get_or_create() depends on database unique constraints.
...
Thanks timmolendijk, jdunck, vijay_shanker, and loic84.
Backport of 428de2e339
from master.
2013-07-04 08:32:49 -04:00
Andrew Godwin
12cb0df10f
Docs for related_query_name
2013-06-27 15:44:22 +01:00
James Bennett
ba610cb319
Fixed #19881 -- Documented that get_next/previous_by_FOO uses default manager.
2013-06-21 13:14:05 -04:00
Loic Bistuer
ee77d4b253
Fixed #20199 -- Allow ModelForm fields to override error_messages from model fields
2013-06-18 08:01:17 -04:00
Tim Graham
5074c75a37
Fixed #16856 - Added a way to clear select_related.
...
Thanks Carl for the suggestion and David Cramer for the patch.
2013-05-30 11:06:05 -04:00
Tim Graham
d321d1acf0
Fixed #20228 - Documented unique_for_date and exclude behavior.
...
Thanks Deepak Thukral for the patch.
2013-05-28 10:04:07 -04:00
Tim Graham
90af278203
Fixed #16137 - Removed kwargs requirement for QuerySet.get_or_create
...
Thanks wilfred@, poirier, and charettes for work
on the patch.
2013-05-27 10:01:14 -04:00
Baptiste Mispelon
08726cb013
Fix #20505 : Typo in BinaryField documentation.
2013-05-27 11:35:34 +02:00
Selwin Ong
375e275030
Slightly reworded 'last()' docs.
2013-05-21 23:18:35 +07:00
Selwin Ong
ea9a0857d4
Fixed #19326 -- Added first() and last() methods to QuerySet
2013-05-21 18:52:28 +03:00
Pablo Recio
65f9e0affd
Fixes #18896 . Add tests verifying that you can get IntegrityErrors using get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
2013-05-19 14:16:12 +02:00
Marc Tamlyn
33c361ef9d
Merge pull request #1129 from frog32/master
...
Add needed Imports to the Documentation
2013-05-19 01:37:25 -07:00
Marc Egli
e4591debd1
Add missing imports and models to the examples in the the model layer documentation
2013-05-18 18:38:52 +02:00
Donald Stufft
398841d6d3
Merge branch 'allow-any-iterable-for-choices'
2013-05-18 11:31:16 -04:00
Erik Romijn
56e2f6ccae
Fixed #20446 -- Documentation for SmallIntegerField does not clarify 'small'
2013-05-18 17:16:07 +02:00
Donald Stufft
a19e9d80ff
Fixed #20430 - Enable iterable of iterables for model choices
...
Allows for any iterable, not just lists or tuples, to be used as
the inner item for a list of choices in a model.
2013-05-18 11:14:05 -04:00
Aymeric Augustin
7b85ef9dfb
Fixed #20408 -- Clarified that values_list() doesn't return a list.
...
Thanks marktranchant, bmispelon, and alextreme.
2013-05-18 12:46:12 +02:00
Tim Graham
8035533557
Merge pull request #1039 from cannona/master
...
Clarified what unique_for_date considers
2013-05-14 16:01:24 -07:00
Wilfred Hughes
d258cce482
Fixing a minor spelling mistake in the queryset documentation
2013-05-14 11:40:33 +01:00
Simeon Visser
b9efc03e6d
Fixed #20397 - Cleaned up issue with quotation marks in documentation
2013-05-12 20:24:48 +01:00
Aymeric Augustin
1fff8daf88
Fixed test failures on MySQL.
...
Some tests failed when the time zone definitions were loaded in MySQL
and pytz wasn't installed. This setup isn't supported.
2013-05-08 13:03:36 +02:00
Aaron Cannon
291250f7b6
Added clarification to the docs, pointing out that unique_for_date only considers the date portion of DateTime fields.
2013-05-03 08:46:53 -05:00
Juan Catalano
78c842a323
Adapted uses of versionchanged/versionadded to the new form.
...
Refs #20104 .
2013-04-20 17:18:35 +02:00
Tim Graham
712a792713
Fixed #20243 - Clarified when RelatedManager.remove() exists.
2013-04-11 14:13:09 -04:00
Andrew Badr
408da7b457
remove confusing phrase from DecimalField docs
...
The phrase "if it exists" was used in reference to the `decimal_places`
argument to `DecimalField`, when in fact that field is required.
2013-04-11 16:27:14 +03:00
Aymeric Augustin
e16c48e001
Fixed #15124 -- Changed the default for BooleanField.
...
Thanks to the many contributors who updated and improved the patch over
the life of this ticket.
2013-03-24 13:47:01 +01:00
Tim Graham
93cffc3b37
Added missing markup to docs.
2013-03-22 13:50:07 -04:00
Aymeric Augustin
6197935152
Fixed #19968 -- Dropped support for PostgreSQL < 8.4.
2013-03-18 21:16:29 +01:00
Johan Charpentier
186bff4703
Fixed #20053 -- Fix `index_together` documentation
2013-03-15 15:15:52 +01:00