Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/docs/ref/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #14007 -- Added model discovery in models module ↵Tim Graham2013-07-171-3/+8
| | | | | | without the need to specify app_label. Thanks mark@ and Aramgutang for work on the patch.
* Fixed #20429 -- Added QuerySet.update_or_createKarol Sikora2013-07-121-2/+44
| | | | Thanks tunixman for the suggestion and Loic Bistuer for the review.
* Fixed #17528 -- Documented that add() and remove() with ↵Tim Graham2013-07-121-0/+16
| | | | a many-to-many relationship do not call Model.save()
* Fixed #20735 -- clarified ManyToManyField constructor docChristopher Medrela2013-07-121-4/+4
|
* Fixed #20224 -- Update docs examples which mention ↵Claude Paroz2013-07-052-0/+7
| | | | | | __unicode__ Thanks Marc Tamlyn and Tim Graham for the review.
* Fixed #20561 -- Emphasized that ↵Tim Graham2013-07-051-8/+5
| | | | | | QuerySet.distinct([*fields]) is only supported by Postgres. Thanks jtiai for the suggestion.
* Fixed #12579 -- Noted QuerySet.get_or_create() depends ↵Tim Graham2013-07-041-10/+21
| | | | | | on database unique constraints. Thanks timmolendijk, jdunck, vijay_shanker, and loic84.
* Removed 'depth' .select_related() argument as per ↵Ramiro Morales2013-06-291-16/+0
| | | | deprecation TL.
* Docs for related_query_nameAndrew Godwin2013-06-271-0/+22
|
* Fixed #19881 -- Documented that get_next/previous_by_FOO ↵James Bennett2013-06-211-2/+5
| | | | uses default manager.
* Fixed #20199 -- Allow ModelForm fields to override ↵Loic Bistuer2013-06-181-4/+10
| | | | error_messages from model fields
* Fixed #16856 - Added a way to clear select_related.Tim Graham2013-05-301-0/+7
| | | | Thanks Carl for the suggestion and David Cramer for the patch.
* Fixed #20228 - Documented unique_for_date and exclude ↵Tim Graham2013-05-281-1/+6
| | | | | | behavior. Thanks Deepak Thukral for the patch.
* Fixed #16137 - Removed kwargs requirement for ↵Tim Graham2013-05-271-2/+6
| | | | | | | QuerySet.get_or_create Thanks wilfred@, poirier, and charettes for work on the patch.
* Fix #20505: Typo in BinaryField documentation.Baptiste Mispelon2013-05-271-1/+1
|
* Slightly reworded 'last()' docs.Selwin Ong2013-05-211-1/+1
|
* Fixed #19326 -- Added first() and last() methods to QuerySetSelwin Ong2013-05-211-0/+30
|
* Fixes #18896. Add tests verifying that you can get ↵Pablo Recio2013-05-191-0/+35
| | | | IntegrityErrors using get_or_create through relations like M2M, and it also adds a note into the documentation warning about it
* Merge pull request #1129 from frog32/masterMarc Tamlyn2013-05-195-2/+39
|\ | | | | Add needed Imports to the Documentation
| * Add missing imports and models to the examples in the ↵Marc Egli2013-05-185-2/+39
| | | | | | | | the model layer documentation
* | Merge branch 'allow-any-iterable-for-choices'Donald Stufft2013-05-181-3/+4
|\ \
| * | Fixed #20430 - Enable iterable of iterables for model ↵Donald Stufft2013-05-181-3/+4
| |/ | | | | | | | | | | | | 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.
* / Fixed #20446 -- Documentation for SmallIntegerField does ↵Erik Romijn2013-05-181-2/+4
|/ | | | not clarify 'small'
* Fixed #20408 -- Clarified that values_list() doesn't ↵Aymeric Augustin2013-05-181-0/+5
| | | | | | return a list. Thanks marktranchant, bmispelon, and alextreme.
* Merge pull request #1039 from cannona/masterTim Graham2013-05-151-0/+3
|\ | | | | Clarified what unique_for_date considers
| * Added clarification to the docs, pointing out that ↵Aaron Cannon2013-05-031-0/+3
| | | | | | | | unique_for_date only considers the date portion of DateTime fields.
* | Fixing a minor spelling mistake in the queryset ↵Wilfred Hughes2013-05-141-1/+1
| | | | | | | | documentation
* | Fixed #20397 - Cleaned up issue with quotation marks in ↵Simeon Visser2013-05-121-1/+1
| | | | | | | | documentation
* | Fixed test failures on MySQL.Aymeric Augustin2013-05-081-1/+2
|/ | | | | Some tests failed when the time zone definitions were loaded in MySQL and pytz wasn't installed. This setup isn't supported.
* Adapted uses of versionchanged/versionadded to the new form.Juan Catalano2013-04-203-18/+24
| | | | Refs #20104.
* Fixed #20243 - Clarified when RelatedManager.remove() ↵Tim Graham2013-04-111-8/+7
| | | | exists.
* remove confusing phrase from DecimalField docsAndrew Badr2013-04-111-1/+1
| | | | The phrase "if it exists" was used in reference to the `decimal_places` argument to `DecimalField`, when in fact that field is required.
* Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin2013-03-241-0/+4
| | | | | Thanks to the many contributors who updated and improved the patch over the life of this ticket.
* Added missing markup to docs.Tim Graham2013-03-221-2/+2
|
* Fixed #19968 -- Dropped support for PostgreSQL < 8.4.Aymeric Augustin2013-03-181-1/+1
|
* Fixed #20053 -- Fix `index_together` documentationJohan Charpentier2013-03-151-0/+1
|
* Fixed #16649 -- Refactored save_base logicAnssi Kääriäinen2013-03-141-6/+7
| | | | | | | | | | | | | | | | | | | 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)
* Fixed broken link in binary fields doc.Ramiro Morales2013-03-121-1/+1
|
* Fixed #20018: Added backtick to fix referenceJonathan Loy2013-03-101-1/+1
| | | | Fixed #20018
* Fixed #15363 -- Renamed and normalized to `get_queryset` ↵Loic Bistuer2013-03-081-9/+9
| | | | the methods that return a QuerySet.
* Adde two "versionadded" markers, thanks to mYk for noticing.Alex Gaynor2013-03-071-0/+4
|
* Added a ManyToManyField(db_constraint=False) option, ↵Alex Gaynor2013-03-071-0/+14
| | | | this allows not creating constraints on the intermediary models.
* Add a BinaryField model fieldClaude Paroz2013-03-021-0/+16
| | | | | Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
* Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen2013-02-271-5/+0
| | | | | | | | | | | | | | | | | | 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.
* Clarified the language used in the documentation. Thanks ↵Alex Gaynor2013-02-201-2/+2
| | | | to Mike Smith for the report.
* Added a db_constraint option to ForeignKeys.Alex Gaynor2013-02-201-0/+13
| | | | 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!
* Fixed #19824 - Corrected the class described for ↵Tim Graham2013-02-171-2/+2
| | | | | | Field.primary_key from IntegerField to AutoField. Thanks Keryn Knight.
* Fixed #17260 -- Added time zone aware aggregation and ↵Aymeric Augustin2013-02-161-21/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lookups. 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.
* Added missing versionadded 1.6 to docs of earliest()Anssi Kääriäinen2013-01-201-0/+2
| | | | Refs #17813
* Fixed #17813 -- Added a .earliest() method to QuerySetNick Sandford2013-01-202-7/+17
| | | | | | | | Thanks a lot to everybody participating in developing this feature. The patch was developed by multiple people, at least Trac aliases tonnzor, jimmysong, Fandekasp and slurms. Stylistic changes added by committer.