summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2013-10-23Fixed #13245: Explained Oracle's behavior w.r.t db_tableShai Berger
and how to prevent table-name truncation Thanks russellm & timo for discussion, and timo for review. Backported from master 317040a73b77be8f8210801793b2ce6d1a69301e
2013-10-18[1.6.x] Fixed #21212 -- Documented the reverse name for OneToOneField.Juergen Schackmann
Thanks bjb at credil.org for the report. Backport of f8632572ad from master
2013-10-02[1.6.x] Fixed #10913 -- Documented how related_name affects QuerySet filteringTim Graham
Thanks neithere for the suggestion. Backport of 75bb6ba966 from master
2013-09-21[1.6.x] Correct very minor typomlissner
Just changed as to has. Backport of d8f2d940cc from master
2013-09-13[1.6.x] Fixed #21095 -- Documented new requirement for dates lookups.Matt Austin
Day, month, and week_day lookups now require time zone definitions in the database. Backport of 9451d8d from master.
2013-09-09[1.6.x] Fixed spelling; refs #16895.Tim Graham
Thanks Panagiotis Issaris for the report. Backport of fb51c9a0f2 from master
2013-09-09[1.6.x] Fixed #16895 -- Warned about cost of QuerySet orderinge0ne
Thanks outofculture at gmail.com for the suggestion. Backport of cbf08c6b0c from master
2013-09-07Fixed #20409 -- Clarified how unique_for_date works when USE_TZ is set.Aymeric Augustin
2013-09-05[1.6.x] Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.Eric Boersma
The documentation and comments now all use 'an' to refer to the word SQL and not 'a'. Backport of 4d13cc56de from master
2013-08-30[1.6.x] Fixed typo in docs/ref/models/options.txtTim Graham
Backport of a89c856a7a from master
2013-08-30[1.6.x] Fixed #20988 -- Added model meta option select_on_saveAnssi Kääriäinen
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 e973ee6a9879969b8ae05bb7ff681172cc5386a5 from master Conflicts: django/db/models/options.py tests/basic/tests.py
2013-08-21[1.6.x] Documentation -- Corrected error about Model.full_clean()Kevin Christopher Henry
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-20[1.6.x] Documentation - Noted that OneToOneField doesn't respect unique.Kevin Christopher Henry
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-08[1.6.x] Added note to GenericIPAddressField documentationChristopher Medrela
refs #20484 Backport of fb26c4996a from master
2013-08-05[1.6.x] Fixed #20859 - Clarified Model.clean() example.Jimmy Song
Backport of 94d7fed775 from master
2013-08-04[1.6.x] Fixed #20842 and #20845 - Added a note on order_by() and improved ↵Daniele Procida
prefetch_related() docs. Backport of e8183a8193 from master
2013-08-01[1.6.x] Removed unused model option "admin"Tim Graham
Backport of 5df84b268d from master
2013-07-12[1.6.x] Fixed #17528 -- Documented that add() and remove() with a ↵Tim Graham
many-to-many relationship do not call Model.save() Backport of 3cdeb572d7 from master
2013-07-12[1.6.x] Fixed #20735 -- clarified ManyToManyField constructor docChristopher Medrela
Backport of ac223ff6d1 from master
2013-07-05[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__Claude Paroz
Thanks Marc Tamlyn and Tim Graham for the review. Backport of 7442eb1a24 from master.
2013-07-05[1.6.x] Fixed #20561 -- Emphasized that QuerySet.distinct([*fields]) is only ↵Tim Graham
supported by Postgres. Thanks jtiai for the suggestion. Backport of 577b0f9189 from master.
2013-07-04[1.6.x] Fixed #12579 -- Noted QuerySet.get_or_create() depends on database ↵Tim Graham
unique constraints. Thanks timmolendijk, jdunck, vijay_shanker, and loic84. Backport of 428de2e339 from master.
2013-06-27Docs for related_query_nameAndrew Godwin
2013-06-21Fixed #19881 -- Documented that get_next/previous_by_FOO uses default manager.James Bennett
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-05-30Fixed #16856 - Added a way to clear select_related.Tim Graham
Thanks Carl for the suggestion and David Cramer for the patch.
2013-05-28Fixed #20228 - Documented unique_for_date and exclude behavior.Tim Graham
Thanks Deepak Thukral for the patch.
2013-05-27Fixed #16137 - Removed kwargs requirement for QuerySet.get_or_createTim Graham
Thanks wilfred@, poirier, and charettes for work on the patch.
2013-05-27Fix #20505: Typo in BinaryField documentation.Baptiste Mispelon
2013-05-21Slightly reworded 'last()' docs.Selwin Ong
2013-05-21Fixed #19326 -- Added first() and last() methods to QuerySetSelwin Ong
2013-05-19Fixes #18896. Add tests verifying that you can get IntegrityErrors using ↵Pablo Recio
get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
2013-05-19Merge pull request #1129 from frog32/masterMarc Tamlyn
Add needed Imports to the Documentation
2013-05-18Add missing imports and models to the examples in the the model layer ↵Marc Egli
documentation
2013-05-18Merge branch 'allow-any-iterable-for-choices'Donald Stufft
2013-05-18Fixed #20446 -- Documentation for SmallIntegerField does not clarify 'small'Erik Romijn
2013-05-18Fixed #20430 - Enable iterable of iterables for model choicesDonald Stufft
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-18Fixed #20408 -- Clarified that values_list() doesn't return a list.Aymeric Augustin
Thanks marktranchant, bmispelon, and alextreme.
2013-05-14Merge pull request #1039 from cannona/masterTim Graham
Clarified what unique_for_date considers
2013-05-14Fixing a minor spelling mistake in the queryset documentationWilfred Hughes
2013-05-12Fixed #20397 - Cleaned up issue with quotation marks in documentationSimeon Visser
2013-05-08Fixed test failures on MySQL.Aymeric Augustin
Some tests failed when the time zone definitions were loaded in MySQL and pytz wasn't installed. This setup isn't supported.
2013-05-03Added clarification to the docs, pointing out that unique_for_date only ↵Aaron Cannon
considers the date portion of DateTime fields.
2013-04-20Adapted uses of versionchanged/versionadded to the new form.Juan Catalano
Refs #20104.
2013-04-11Fixed #20243 - Clarified when RelatedManager.remove() exists.Tim Graham
2013-04-11remove confusing phrase from DecimalField docsAndrew Badr
The phrase "if it exists" was used in reference to the `decimal_places` argument to `DecimalField`, when in fact that field is required.
2013-03-24Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin
Thanks to the many contributors who updated and improved the patch over the life of this ticket.
2013-03-22Added missing markup to docs.Tim Graham
2013-03-18Fixed #19968 -- Dropped support for PostgreSQL < 8.4.Aymeric Augustin
2013-03-15Fixed #20053 -- Fix `index_together` documentationJohan Charpentier