summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2012-03-17Fixed #17926 -- Removed mention of XMLField in docs (missing deletion from ↵Claude Paroz
r15982). Thanks aburgel for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-12Edited some docs and docstrings until [17685]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-11Fixed an inappropriate repetition. Thanks DanGer for the report.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-04Documented a limit of the SQLite backend, in relation with the bulk_create ↵Aymeric Augustin
function. Refs #17788. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17653 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-28Fixed #17668 - prefetch_related does not work in in_bulkLuke Plant
Thanks to gurets for the report, and akaariai for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17600 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-21Fixed a few typos in the aggregation functions reference.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03Edited models/options.txt changes from [17314]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-21Fixed #10139 -- Clarified that slicing an evaluated QuerySet returns a list, ↵Aymeric Augustin
not a QuerySet. Thanks ori for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-06Moved misplaced documentation warning note about internal QuerySet query ↵Ramiro Morales
atribute. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-31Fixed #640 - Documented that changing order_with_respect_to requires a ↵Timo Graham
schema change; thanks fcurella and poirier for the draft patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-31Fixed #702 - Documented that ManyToMany fields can't be in unique_together; ↵Timo Graham
thanks poirier for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30Edited doc changes from [17244]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22Added support for modifying the effect of ``DISTINCT`` clauses so theyRamiro Morales
only consider some fields (PostgreSQL only). For this, the ``distinct()`` QuerySet method now accepts an optional list of model fields names and generates ``DISTINCT ON`` clauses on these cases. Thanks Jeffrey Gelens and Anssi Kääriäinen for their work. Fixes #6422. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-20Fixed a typo in the model fields reference.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-24Added warning about the performance of large IN clauses in prefetch_related docsLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #17269 -- Corrected the model options doc to indicate that, since 1.4, ↵Julien Phalip
all fields in `Meta.ordering` are honored by the admin. Thanks to sebastian for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-19Fix #15646: Document that a FileField's full path can't be relied upon until ↵Karen Tracey
its model has been saved to the database. Thanks poirier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-12Fix #16570: Restore ability to have decimal fields where max_digits equals ↵Karen Tracey
decimal_places. Thanks dcwatson and kenth. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-30Fixed #17063 -- Fixed visibility of a few version-dependant notes in our ↵Ramiro Morales
documentation. Thanks jifeng.yin AT gmail DOT com for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-14Fixed #12308 -- Added tablespace support to the PostgreSQL backend.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Fixed #7609 -- Noted in the model fields reference documentation that ↵Julien Phalip
`PositiveIntegerField` accepts the value 0 for backwards-compatibility reasons. Thanks to everyone involved in the resolution of this issue, including Paul Collins for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-11Corrected a reST formatting problem in the queryset reference docs.Gabriel Hurley
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-10Removed use of non-standard indentation rules in docs, and the custom ↵Luke Plant
transform that supported them. Doc writers should be aware that we are now back to normal ReST rules regarding blockquotes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-10Fixed a bunch of ReST errors that resulted in interpretation as block quotationsLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-08Fixed some ReST errors in docs.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-07Fixed #17003 - prefetch_related should support foreign keys/one-to-oneLuke Plant
Support for `GenericForeignKey` is also included. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-05Fixed #16937 - added `QuerySet.prefetch_related` to prefetch many related ↵Luke Plant
objects. Many thanks to akaariai for lots of review and feedback, bug finding, additional unit tests and performance testing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-30Fixed doc references to `django.db.models.query.QuerySet` and converted some ↵Jannis Leidel
tabs that were introduced in r16699 to spaces. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-22Added versionadded directive for the `bulk_create` Queryset method ↵Jannis Leidel
introduced in r16739. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16109: Corrected an inconsistency in URLconf examples for matching a ↵James Bennett
numeric month. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16592 -- More test changes and documentation to account for MySQL's ↵Russell Keith-Magee
casual relationship with sanity. Thanks to Jim Dalton for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Corrected documentation inconsistencies regarding deprecation of ↵Carl Meyer
URLField.verify_exists. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Altered the behavior of URLField to avoid a potential DOS vector, and to ↵Russell Keith-Magee
avoid potential leakage of local filesystem data. A security announcement will be made shortly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #7596. Added Model.objects.bulk_create, and make use of it in several ↵Alex Gaynor
places. This provides a performance benefit when inserting multiple objects. THanks to Russ for the review, and Simon Meers for the MySQl implementation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-04Converted links to external topics so they use intersphinx extension markup.Ramiro Morales
This allows to make these links more resilent to changes in the target URLs. Thanks Jannis for the report and Aymeric Augustin for the patch. Fixes #16586. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-28Slightly rewrite @permalink and get_absolute_url() documentation.Malcolm Tredinnick
Part 2 of the model instance documentation changes. Slightly tidied up get_absolute_url() and @permalink documentation to collapse some of the earlier versions into a preferred learning order. I'm still not amazingly happy with this, but larger rewrites are needed to the URLconf stuff across a few files before I can get it into the most natural order, I suspect. That's a slightly longer-term project. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-28Documentation edits for model instance docs.Malcolm Tredinnick
First of two parts. Mostly adding cross references to other parts of the documentation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-27Extensive copy-editing and cross-referencing in the queryset API docs.Malcolm Tredinnick
Been meaning to do this for a long time. Mostly, this is a lot of additions of cross references. Within a particular section about foo() I didn't cross-link foo() calls to itself, but everything else was cross-linked to its main documentation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-26Fixed #16712 -- Fixed a small typo in the QuerySet API docs. Thanks to Rupe ↵Julien Phalip
and Aymeric Augustin for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-26Corrected explanation of values() and extra() interaction in querysets.Malcolm Tredinnick
Fixes #15546, refs #13455. The original documentation patch inadvertently muddied the waters in one aspect and this commit tidies that up. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-26Clarify the documentation around SQLite and case-sensitive string matching.Malcolm Tredinnick
This was still causing some confusion, so I rewrote the section in the database notes to encompass both substring matching and non-ASCII case-insensitive equality checks, as well as putting in a stronger callout on the "contains" filter. Refs #16569. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-26Be very clear about when it's appropriate to use defer() and only().Malcolm Tredinnick
I've been seeing a bit of over-reliance on defer() and only() in code around the place and it's generally better modelled with normalised data or shadow (unmanaged) models. This commit makes this position clearer. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-06Fixed #16580 - Typo in docs/ref/models/querysets.txtTimo Graham
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-29Fixed #16498 -- Fixed typo in GenericIPAddressField docs. Thanks, JshWright.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-06Improved warning about file uploads in docs, and added link from security ↵Luke Plant
overview page git-svn-id: http://code.djangoproject.com/svn/django/trunk@16521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-06s/get/filter in new example of how to use queryset update method: update ↵Karen Tracey
won't work on a model instance. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-05Added another bit to the update() queryset docs about avoiding race conditionsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16517 bcc190cf-cafb-0310-a4f2-bffc1f526a37