summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
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
2013-03-14Fixed #16649 -- Refactored save_base logicAnssi Kääriäinen
Model.save() will use UPDATE - if not updated - INSERT instead of SELECT - if found UPDATE else INSERT. This should save a query when updating, but will cost a little when inserting model with PK set. Also fixed #17341 -- made sure .save() commits transactions only after the whole model has been saved. This wasn't the case in model inheritance situations. The save_base implementation was refactored into multiple methods. A typical chain for inherited save is: save_base() _save_parents(self) for each parent: _save_parents(parent) _save_table(parent) _save_table(self)
2013-03-11Fixed broken link in binary fields doc.Ramiro Morales
2013-03-10Fixed #20018: Added backtick to fix referenceJonathan Loy
Fixed #20018
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2013-03-07Adde two "versionadded" markers, thanks to mYk for noticing.Alex Gaynor
2013-03-07Added a ManyToManyField(db_constraint=False) option, this allows not ↵Alex Gaynor
creating constraints on the intermediary models.
2013-03-02Add a BinaryField model fieldClaude Paroz
Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
2013-02-27Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen
There were a couple of errors in ._dirty flag handling: * It started as None, but was never reset to None. * The _dirty flag was sometimes used to indicate if the connection was inside transaction management, but this was not done consistently. This also meant the flag had three separate values. * The None value had a special meaning, causing for example inability to commit() on new connection unless enter/leave tx management was done. * The _dirty was tracking "connection in transaction" state, but only in managed transactions. * Some tests never reset the transaction state of the used connection. * And some additional less important changes. This commit has some potential for regressions, but as the above list shows, the current situation isn't perfect either.
2013-02-20Clarified the language used in the documentation. Thanks to Mike Smith for ↵Alex Gaynor
the report.
2013-02-20Added a db_constraint option to ForeignKeys.Alex Gaynor
This controls whether or not a database level cosntraint is created. This is useful in a few specialized circumstances, but in general should not be used!
2013-02-16Fixed #19824 - Corrected the class described for Field.primary_key from ↵Tim Graham
IntegerField to AutoField. Thanks Keryn Knight.
2013-02-16Fixed #17260 -- Added time zone aware aggregation and lookups.Aymeric Augustin
Thanks Carl Meyer for the review. Squashed commit of the following: commit 4f290bdb60b7d8534abf4ca901bd0844612dcbda Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 21:21:30 2013 +0100 Used '0:00' instead of 'UTC' which doesn't always exist in Oracle. Thanks Ian Kelly for the suggestion. commit 01b6366f3ce67d57a58ca8f25e5be77911748638 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 13:38:43 2013 +0100 Made tzname a parameter of datetime_extract/trunc_sql. This is required to work around a bug in Oracle. commit 924a144ef8a80ba4daeeafbe9efaa826566e9d02 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 14:47:44 2013 +0100 Added support for parameters in SELECT clauses. commit b4351d2890cd1090d3ff2d203fe148937324c935 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 22:30:22 2013 +0100 Documented backwards incompatibilities in the two previous commits. commit 91ef84713c81bd455f559dacf790e586d08cacb9 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 09:42:31 2013 +0100 Used QuerySet.datetimes for the admin's date_hierarchy. commit 0d0de288a5210fa106cd4350961eb2006535cc5c Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 09:29:38 2013 +0100 Used QuerySet.datetimes in date-based generic views. commit 9c0859ff7c0b00734afe7fc15609d43d83215072 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:25 2013 +0100 Implemented QuerySet.datetimes on Oracle. commit 68ab511a4ffbd2b811bf5da174d47e4dd90f28fc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:14 2013 +0100 Implemented QuerySet.datetimes on MySQL. commit 22d52681d347a8cdf568dc31ed032cbc61d049ef Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:42:29 2013 +0100 Implemented QuerySet.datetimes on SQLite. commit f6800fd04c93722b45f9236976389e0b2fe436f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:03 2013 +0100 Implemented QuerySet.datetimes on PostgreSQL. commit 0c829c23f4cf4d6804cadcc93032dd4c26b8c65e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:41:08 2013 +0100 Added datetime-handling infrastructure in the ORM layers. commit 104d82a7778cf3f0f5d03dfa53709c26df45daad Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 10:05:55 2013 +0100 Updated null_queries tests to avoid clashing with the __second lookup. commit c01bbb32358201b3ac8cb4291ef87b7612a2b8e6 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 23:07:41 2013 +0100 Updated tests of .dates(). Replaced .dates() by .datetimes() for DateTimeFields. Replaced dates with datetimes in the expected output for DateFields. commit 50fb7a52462fecf0127b38e7f3df322aeb287c43 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:40:09 2013 +0100 Updated and added tests for QuerySet.datetimes. commit a8451a5004c437190e264667b1e6fb8acc3c1eeb Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 22:34:46 2013 +0100 Documented the new time lookups and updated the date lookups. commit 29413eab2bd1d5e004598900c0dadc0521bbf4d3 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 16:15:49 2013 +0100 Documented QuerySet.datetimes and updated QuerySet.dates.
2013-01-20Added missing versionadded 1.6 to docs of earliest()Anssi Kääriäinen
Refs #17813