summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2014-04-21[1.4.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
2013-10-23Fixed #13245: Explained Oracle's behavior w.r.t db_tableShai Berger
and how to prevent table-name truncation Thanks russellm & timo for discussion, and timo for review. Backported from master 317040a73b77be8f8210801793b2ce6d1a69301e
2013-05-14[1.4.x] Fixed a minor spelling mistake in the queryset documentationWilfred Hughes
Backport of d258cce482 from master
2013-05-13[1.5.X] Fixed #18883 -- added a missing self parameter in the docsAlex Gaynor
Backport of 17d57275f9 from master
2013-02-16[1.4.x] Fixed #19824 - Corrected the class described for Field.primary_key ↵Tim Graham
from IntegerField to AutoField. Thanks Keryn Knight. Backport of 218bbef0c4 from master
2012-10-20[1.4.X] Fixed #13869 - Warned that QuerySet.iterator() doesn't affect DB ↵Tim Graham
driver caching; thanks jtiai for the suggestion. Backport of 2f722d9728 from master
2012-10-18[1.4.X] Fixed #18046 - Documented that an index is created by default for ↵Tim Graham
ForeignKeys; thanks jbauer for the suggestion. Backport of db598dd8a0 from master
2012-10-06[1.4.X] Fixed #17435 - Clarified that QuerySet.update returns the number of ↵Tim Graham
rows matched Backport of 6d46c740d8 from master
2012-10-03[1.4.X] Fixed #18413 - Noted that a model's files are not deleted when the ↵Tim Graham
model is deleted. Thanks lawgon for the report. Backport of 1c03b23567 from master
2012-09-19[1.4.X] Fixed #15325 - Added a link to RelatedManager in the ManytoManyField ↵Tim Graham
docs; thanks jammon for the suggestion. Backport of 0fdfcee257 from master
2012-09-08[1.4.X] Fixed #18478 - Documented how to use a mutable default in a model field.Tim Graham
Backport of 6e2bb344e4 from master
2012-09-05[1.4.X] Fixed #18904 - Typo in MySQL link; thanks Johie Anderson for the report.Tim Graham
Backport of e5983af7c1 from master
2012-08-21[1.4.x] Fixed #18637 - Updated some documentation for aspects of models that ↵Tim Graham
are ModelForm specific, not admin specific. Thanks Ben Sturmfels for the patch. Backport of 13d47c3f338e1e9a5da943b97b5334c0523d2e2c from master.
2012-08-03[1.4.X] Fixed #15932 - Documented how to supress multiple reverse relations ↵Tim Graham
to the same model. Thanks Claude Paroz for the patch. Backport of b496be331c from master
2012-07-01[1.4.X] Fixed #17436 - Added warning about overriding Model.__init__()Tim Graham
Thanks zsiciarz for the draft patch. Backport of 7313468f85 from master
2012-06-30[1.4.X] Fixed #18145 -- Improved documentation of unique_together type fieldsRaúl Cumplido
Backport of 55ffcf8e7b from master
2012-06-06[1.4.X] Replaced documentation snippets using "gender" with less sensitive ↵Jacob Kaplan-Moss
examples. Backport of [7edf231] from master.
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