Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/docs/ref/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #22537 -- Add tests and improved docs for field ↵Mike Fogel2014-04-301-2/+2
| | | | subclass with choices.
* Fixed #22493 - Added warnings to raw() and extra() docs ↵Moayad Mardini2014-04-251-1/+8
| | | | | | about SQL injection Thanks Erik Romijn for the suggestion.
* Fixed queries that may return unexpected results on ↵Erik Romijn2014-04-221-0/+10
| | | | | | MySQL due to typecasting. This is a security fix; disclosure to follow shortly.
* Fixed #22473 -- Emphasized that Model.clean() is not ↵Tim Graham2014-04-181-0/+3
| | | | called from Model.save().
* Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of ↵chriscauley2014-04-171-3/+3
| | | | | | docs and tests. Thanks tomwys for the suggestion.
* Documentation fixes for the select_for_update change.Shai Berger2014-04-101-1/+1
| | | | Refs #22343; thanks Tim Graham for the fixes.
* Fixed #22343 -- Disallowed select_for_update in ↵Shai Berger2014-04-101-0/+10
| | | | | | | | | | autocommit mode 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.
* Fixed #22405 -- Fixed string error in models/queries docs.Anubhav Joshi2014-04-081-1/+1
|
* Removed versionadded/changed annotations for 1.6.Tim Graham2014-03-244-64/+14
|
* Fixed #22048 - Enhanced docs to cover nonexistent ↵Adam Kaliński2014-03-241-0/+9
| | | | | | one-to-one relationships. Thanks EvilDMP for the suggestion.
* Fixed #22313 -- Removed 'u' prefixes from documentationClaude Paroz2014-03-222-8/+8
|
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-2/+2
| | | | refs #19934.
* Fixed minor syntax error in Queryset docsBryan Helmig2014-03-211-1/+1
|
* Fixed #22217 - ManyToManyField.through_fields fixes.Akis Kesoglou2014-03-111-5/+6
| | | | | | - Docs description of arguments mix up. - Keep it from erroneously masking E332 check. - Add checks E338 and E339, tweak message of E337.
* Fixed #21863 -- supplemented get_lookup() with ↵Anssi Kääriäinen2014-03-071-18/+89
| | | | | | | get_transform() Also fixed #22124 -- Expanded explanation of exactly what is going on in as_sql() methods.
* Fixed #14549 - Removed restriction of single FKs on ↵Akis Kesoglou2014-03-051-0/+49
| | | | | | | intermediary tables Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
* Fixed #22206 -- Passed models.TextField.max_length to ↵Chris Wilson2014-03-051-0/+7
| | | | forms.CharField.maxlength
* Allowed custom querysets when prefetching single valued ↵Loic Bistuer2014-03-031-0/+18
| | | | | | | | | | | relations 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.
* Fixed #22172 -- Allowed index_together to be a single ↵Anubhav Joshi2014-03-011-0/+7
| | | | | | list (rather than list of lists).. Thanks EmilStenstrom for the suggestion.
* Fixed spelling mistakes in docs.Tim Graham2014-03-012-2/+2
|
* Fixed doc typos.Tim Graham2014-02-282-3/+3
|
* Fixed #22145 -- Clarified docs on Field.blank and ↵navneet suman2014-02-261-12/+10
| | | | | | Field.null options. Thanks skipjack at peru.com for the suggestion.
* Fixed docs typos.Szczepan Cieślik2014-02-251-2/+2
|
* Fixed #22023 -- Raised an error for values() followed by ↵Artur Frysiak2014-02-171-3/+12
| | | | | | | | | defer() or only(). 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.
* Fixed #21884 -- Mentioned that exact is the defaut ↵chomik2014-02-151-0/+3
| | | | | | QuerySet lookup type Thanks to cjerdonek for the suggestion.
* Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol2014-02-132-9/+28
| | | | Thanks Tim Graham for the report and recommendations
* Fixed #2445 -- Allowed limit_choices_to attribute to be ↵Christopher Adams2014-02-111-11/+35
| | | | | | | | | a callable. 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.
* Removed double word in model docsClaude Paroz2014-02-091-1/+1
|
* Removed extra backquote in field docsClaude Paroz2014-02-081-1/+1
|
* Fixed #16192 -- Made unique error messages in ModelForm ↵Loic Bistuer2014-02-083-4/+13
| | | | | | | | | | | | | | customizable. 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.
* Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette2014-01-261-2/+2
| | | | | | | It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
* Fixed #21865 -- Incorrect signs in documented example.Marc Tamlyn2014-01-231-1/+1
| | | | Maths is hard.
* Fixed #21864 -- Fixed missing quote in custom lookup ↵Baptiste Mispelon2014-01-231-1/+1
| | | | | | example. Thanks to Chris Barna for the report.
* Fixed some punctuation; thanks Chris Jerdonek.Tim Graham2014-01-231-5/+5
|
* Implement swappable model support for migrationsAndrew Godwin2014-01-191-0/+34
|
* Fixed typos spotted by Claude ParozAnssi Kääriäinen2014-01-181-6/+6
|
* Fixed #16187 -- refactored ORM lookup systemAnssi Kääriäinen2014-01-184-0/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixed #18285 -- Documented that bulk_create doesn't work ↵Tim Graham2014-01-171-0/+1
| | | | with M2M relationships.
* Fixed #21343 -- Noted many-to-many restrictions with ↵Tim Graham2014-01-161-2/+6
| | | | | | intermediate model. Thanks EvilDMP for the report.
* Updated release notes on app_label.Aymeric Augustin2014-01-011-2/+2
| | | | | Django determines automatically which application models belong to, provided the application can be imported without importing models.
* Fixed #21632 -- Docs: Removed example with callable as ↵Kevin Christopher Henry2013-12-181-6/+5
| | | | | | | | query parameter Using callables as query parameters is undocumented and not working, so this changes an example from the ForeignKey.limit_choices_to documentation that uses it.
* Fixed #21552 -- Allowed the use of None for the iexact ↵Denis Moskalets2013-12-181-0/+6
| | | | | | lookup. Thanks Anubhav Joshi for the documentation.
* Fix docs typoAndrew Godwin2013-12-151-1/+1
|
* Added a bulk option to RelatedManager remove() and ↵Loic Bistuer2013-11-271-1/+13
| | | | | | clear() methods Refs #21169
* Fixed #21169 -- Reworked RelatedManager methods use ↵Loic Bistuer2013-11-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | default filtering The `remove()` and `clear()` methods of the related managers created by `ForeignKey`, `GenericForeignKey`, and `ManyToManyField` suffered from a number of issues. Some operations ran multiple data modifying queries without wrapping them in a transaction, and some operations didn't respect default filtering when it was present (i.e. when the default manager on the related model implemented a custom `get_queryset()`). Fixing the issues introduced some backward incompatible changes: - The implementation of `remove()` for `ForeignKey` related managers changed from a series of `Model.save()` calls to a single `QuerySet.update()` call. The change means that `pre_save` and `post_save` signals aren't called anymore. - The `remove()` and `clear()` methods for `GenericForeignKey` related managers now perform bulk delete so `Model.delete()` isn't called anymore. - The `remove()` and `clear()` methods for `ManyToManyField` related managers perform nested queries when filtering is involved, which may or may not be an issue depending on the database and the data itself. Refs. #3871, #21174. Thanks Anssi Kääriäinen and Tim Graham for the reviews.
* Fixed a typo in the documentationAlex Gaynor2013-11-261-1/+1
|
* Fixed #21507 -- Corrected default widget information for ↵Ludwik Trammer2013-11-251-1/+5
| | | | FileField
* Add missing commas in Prefetch docsThomas Orozco2013-11-231-2/+2
|
* Fixed #21491 -- Removed documented workaround for a ↵Loic Bistuer2013-11-221-7/+0
| | | | | | | | | known issue. The issue was that two M2M hidden reverse managers (related_name ending with a '+') could clash with each other. Refs #21375 and #15932. Thanks Baptiste.
* Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.Loic Bistuer2013-11-211-1/+1
|