summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2014-07-26[1.7.x] Fixed #22553 -- Added refreshing queryset info to docs.David Hoffman
Backport of 6d5daa30cf from master
2014-07-24[1.7.x] Fixed #23094 -- Removed redundant argument in select_related() example.Tim Graham
Thanks thegeekofalltrades at gmail.com for the report. Backport of 5f919b9c81 from master
2014-07-10[1.7.x] Fixed #22809 -- Added model Field API reference.Jorge C. Leitão
Thanks to @timgraham for the review. Backport of e1fa7dffdc from master
2014-07-09[1.7.x] Fixed #22351 -- Removed usage of lambdas in model field options.Tim Graham
Thanks claudep for review. Backport of 5ebf03b7dd from master
2014-07-08[1.7.x] Fixed #22812 -- Refactored lookup API documentation.Jorge C. Leitão
Thanks Anssi and Tim for reviews. Backport of 8780849da0 from master
2014-06-18[1.7.x] Fixed #14481 -- Documented implicit "through" class created by ↵Jorge C. Leitão
ManyToManyField. Thanks to jonathanmorgan for the report and initial patch. Backport of de90129070 from master
2014-06-17[1.7.x] Fixed #22819 -- Renamed output_type -> output_field in query ↵Tim Graham
expression API. Thanks jorgecarleitao for the suggestion. Backport of 95cc0e15b4 from master
2014-06-15[1.7.x] Fixed #22660: Doc'd you can't have unmigrated apps depend on migratedAndrew Godwin
2014-06-12[1.7.x] Fixed #22813 -- Updated Pillow URL in documentationClaude Paroz
Backport of dfa3505ff1 from master.
2014-06-04[1.7.x] Fixed #22710 -- Amended aggregation note for empty QuerySetsGuillaume Pannatier
Thanks smeaton for report and Joël Rochat for spell check Backport of 7f27cca5c5 from master
2014-05-30[1.7.x] Fixed #22710 -- Documented aggregation behavior for empty QuerySets.Guillaume Pannatier
Thanks matklad for the report. Backport of 7c6e96ec1f from master
2014-05-25[1.7.x] Fixed typo in docs/ref/models/custom-lookups.txt.Matthew Schinckel
Backport of 2b432d4634 from master
2014-05-15[1.7.x] Fixed typo that disabled code example highlightingÉric Araujo
Backport of 5ab95168cc from master
2014-04-30[1.7.x] Fixed #19195 -- Allow explicit ordering by a relation `_id` field.Simon Charette
Thanks to chrisedgemon for the report and shaib, akaariai and timgraham for the review. Backport of 24ec9538b7 from master
2014-04-30[1.7.x] Fixed #22537 -- Add tests and improved docs for field subclass with ↵Mike Fogel
choices. Backport of 7fd1b35ed7 from master
2014-04-25[1.7.x] Fixed #22493 - Added warnings to raw() and extra() docs about SQL ↵Moayad Mardini
injection Thanks Erik Romijn for the suggestion. Backport of 3776926cfe from master
2014-04-21[1.7.x] Fixed queries that may return unexpected results on MySQL due to ↵Erik Romijn
typecasting. This is a security fix. Disclosure will follow shortly. Backport of 75c0d4ea3ae48970f788c482ee0bd6b29a7f1307 from master
2014-04-18[1.7.x] Fixed #22473 -- Emphasized that Model.clean() is not called from ↵Tim Graham
Model.save(). Backport of b43bbd6d39 from master
2014-04-10[1.7.x] Documentation fixes for the select_for_update change.Shai Berger
Refs #22343; thanks Tim Graham for the fixes. Backport of 59b1d30 from master
2014-04-10[1.7.x] Fixed #22343 -- Disallowed select_for_update in autocommit modeShai Berger
The ticket was originally about two failing tests, which are fixed by putting their queries in transactions. Thanks Tim Graham for the report, Aymeric Augustin for the fix, and Simon Charette, Tim Graham & Loïc Bistuer for review. Backport of b990df1d63 from master
2014-04-08[1.7.x] Fixed #22405 -- Fixed string error in models/queries docs.Anubhav Joshi
Backport of 36de29200e1ea713c278f7672ab1790e1500c423 from master.
2014-03-24[1.7.x] Fixed #22048 - Enhanced docs to cover nonexistent one-to-one ↵Adam Kaliński
relationships. Thanks EvilDMP for the suggestion. Backport of ec08d62a20 from master
2014-03-21[1.7.x] Replaced an instance of PIL with Pillow in the docs.Tim Graham
Done in 4965a774074780f3e4858bcc975476f71edf2c2c on master.
2014-03-21[1.7.x] Fixed minor syntax error in Queryset docsBryan Helmig
Backport of f2eea960e052db2d280e6dd016b0f8f23d5a8ef7 from master.
2014-03-11Fixed #22217 - ManyToManyField.through_fields fixes.Akis Kesoglou
- Docs description of arguments mix up. - Keep it from erroneously masking E332 check. - Add checks E338 and E339, tweak message of E337.
2014-03-07Fixed #21863 -- supplemented get_lookup() with get_transform()Anssi Kääriäinen
Also fixed #22124 -- Expanded explanation of exactly what is going on in as_sql() methods.
2014-03-05Fixed #14549 - Removed restriction of single FKs on intermediary tablesAkis Kesoglou
Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
2014-03-05Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlengthChris Wilson
2014-03-03Allowed custom querysets when prefetching single valued relationsLoic Bistuer
The original patch for custom prefetches didn't allow usage of custom queryset for single valued relations (along ForeignKey or OneToOneKey). Allowing these enables calling performance oriented queryset methods like select_related or defer/only. Thanks @akaariai and @timgraham for the reviews. Refs #17001.
2014-03-01Fixed #22172 -- Allowed index_together to be a single list (rather than list ↵Anubhav Joshi
of lists).. Thanks EmilStenstrom for the suggestion.
2014-02-28Fixed spelling mistakes in docs.Tim Graham
2014-02-28Fixed doc typos.Tim Graham
2014-02-25Fixed #22145 -- Clarified docs on Field.blank and Field.null options.navneet suman
Thanks skipjack at peru.com for the suggestion.
2014-02-25Fixed docs typos.Szczepan Cieślik
2014-02-17Fixed #22023 -- Raised an error for values() followed by defer() or only().Artur Frysiak
Previously, doing so resulted in invalid data or crash. Thanks jtiai for the report and Karol Jochelson, Jakub Nowak, Loic Bistuer, and Baptiste Mispelon for reviews.
2014-02-15Fixed #21884 -- Mentioned that exact is the defaut QuerySet lookup typechomik
Thanks to cjerdonek for the suggestion.
2014-02-13Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol
Thanks Tim Graham for the report and recommendations
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2014-02-09Removed double word in model docsClaude Paroz
2014-02-08Removed extra backquote in field docsClaude Paroz
2014-02-08Fixed #16192 -- Made unique error messages in ModelForm customizable.Loic Bistuer
Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-23Fixed #21865 -- Incorrect signs in documented example.Marc Tamlyn
Maths is hard.
2014-01-23Fixed #21864 -- Fixed missing quote in custom lookup example.Baptiste Mispelon
Thanks to Chris Barna for the report.
2014-01-23Fixed some punctuation; thanks Chris Jerdonek.Tim Graham
2014-01-19Implement swappable model support for migrationsAndrew Godwin
2014-01-18Fixed typos spotted by Claude ParozAnssi Kääriäinen
2014-01-18Fixed #16187 -- refactored ORM lookup systemAnssi Kääriäinen
Allowed users to specify which lookups or transforms ("nested lookus") are available for fields. The implementation is now class based. Squashed commit of the following: commit fa7a7195f1952a9c8dea7f6e89ee13f81757eda7 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 18 10:53:24 2014 +0200 Added lookup registration API docs commit eb1c8ce164325e0d8641f14202e12486c70efdb6 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Tue Jan 14 18:59:36 2014 +0200 Release notes and other minor docs changes commit 11501c29c9352d17f22f3a0f59d3b805913dedcc Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 20:53:03 2014 +0200 Forgot to add custom_lookups tests in prev commit commit 83173b960ea7eb2b24d573f326be59948df33536 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 19:59:12 2014 +0200 Renamed Extract -> Transform commit 3b18d9f3a1bcdd93280f79654eba0efa209377bd Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 19:51:53 2014 +0200 Removed suggestion of temporary lookup registration from docs commit 21d0c7631c161fc0c67911480be5d3f13f1afa68 Merge: 2509006 f2dc442 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 09:38:23 2014 -0800 Merge pull request #2 from mjtamlyn/lookups_3 Reworked custom lookups docs. commit f2dc4429a1da04c858364972eea57a35a868dab4 Author: Marc Tamlyn <marc.tamlyn@gmail.com> Date: Sun Jan 12 13:15:05 2014 +0000 Reworked custom lookups docs. Mostly just formatting and rewording, but also replaced the example using ``YearExtract`` to use an example which is unlikely to ever be possible directly in the ORM. commit 250900650628d1f11beadb22814abd666029fb81 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 13:19:13 2014 +0200 Removed unused import commit 4fba5dfaa022653ffa72497258ffd8f8b7476f92 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 22:34:41 2014 +0200 Added docs to index commit 6d53963f375c77a1f287833b19b976d23f36c30b Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 22:10:24 2014 +0200 Dead code removal commit f9cc0390078e21f1ea5a7bc1f15b09f8f6b0904d Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 19:00:43 2014 +0200 A new try for docs commit 33aa18a6e3c831930bda0028222a26f9c1d96e66 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 14:57:12 2014 +0200 Renamed get_cols to get_group_by_cols commit c7d5f8661b7d364962bed2e6f81161c1b4f1bcc3 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 14:45:53 2014 +0200 Altered query string customization for backends vendors The new way is trying to call first method 'as_' + connection.vendor. If that doesn't exist, then call as_sql(). Also altered how lookup registration is done. There is now RegisterLookupMixin class that is used by Field, Extract and sql.Aggregate. This allows one to register lookups for extracts and aggregates in the same way lookup registration is done for fields. commit 90e7004ec14e15503f828cc9bde2a7dab593814d Merge: 66649ff f7c2c0a Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 13:21:01 2014 +0200 Merge branch 'master' into lookups_3 commit 66649ff891c7c73c7eecf6038c9a6802611b5d8a Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 13:16:01 2014 +0200 Some rewording in docs commit 31b8faa62714b4b6b6057a9f5cc106c4dd73caab Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 29 15:52:29 2013 +0200 Cleanup based on review comments commit 1016159f34674c0df871ed891cde72be8340bb5d Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 28 18:37:04 2013 +0200 Proof-of-concept fix for #16731 Implemented only for SQLite and PostgreSQL, and only for startswith and istartswith lookups. commit 193cd097ca8f2cc6a911e57b8e3fb726f96ee6a6 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 28 17:57:58 2013 +0200 Fixed #11722 -- iexact=F() produced invalid SQL commit 08ed3c3b49e100ed9019831e770c25c8f61b70f9 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 23:59:52 2013 +0200 Made Lookup and Extract available from django.db.models commit b99c8d83c972786c6fcd0e84c9e5cb08c1368300 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 23:06:29 2013 +0200 Fixed review notes by Loic commit 049eebc0703c151127f4f0265beceea7b8b39e72 Merge: ed8fab7 b80a835 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 22:53:10 2013 +0200 Merge branch 'master' into lookups_3 Conflicts: django/db/models/fields/__init__.py django/db/models/sql/compiler.py django/db/models/sql/query.py tests/null_queries/tests.py commit ed8fab7fe8867ff3eb801c3697a426478387bb2f Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 22:47:23 2013 +0200 Made Extracts aware of full lookup path commit 27a57b7aed91b2f346abc4a77da838bffa17c727 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 21:10:11 2013 +0200 Removed debugger import commit 074e0f5aca0572e368c11e6d2c73c9026e7d63d7 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 21:02:16 2013 +0200 GIS lookup support added commit 760e28e72bae475b442b026650969b0d182dbe53 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 20:04:31 2013 +0200 Removed usage of Constraint, used Lookup instead commit eac47766844b90e7d3269e7a8c012eee34ec0093 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 02:22:30 2013 +0200 Minor cleanup of Lookup API commit 2adf50428d59a783078b0da3d5d035106640c899 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 02:14:19 2013 +0200 Added documentation, polished implementation commit 32c04357a87e3727a34f8c5e6ec0114d1fbbb303 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Nov 30 23:10:15 2013 +0200 Avoid OrderedDict creation on lookup aggregate check commit 7c8b3a32cc17b4dbca160921d48125f1631e0df4 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Nov 30 23:04:34 2013 +0200 Implemented nested lookups But there is no support of using lookups outside filtering yet. commit 4d219d4cdef21d9c14e5d6b9299d583d1975fcba Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Wed Nov 27 22:07:30 2013 +0200 Initial implementation of custom lookups
2014-01-16Fixed #18285 -- Documented that bulk_create doesn't work with M2M relationships.Tim Graham
2014-01-16Fixed #21343 -- Noted many-to-many restrictions with intermediate model.Tim Graham
Thanks EvilDMP for the report.