summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2010-05-11[1.1.X] Fixed #12997 -- Corrected the module markup for QuerySet methods. ↵Russell Keith-Magee
Thanks to timo for the report. Backport of r13235 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-10[1.1.X] Fixed #12678 -- Corrected a few references to Queryset into ↵Russell Keith-Magee
QuerySet. Thanks to ChrisMorgan for the report, and timo for the patch. Backport of r13211 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-10[1.1.X] Fixed #12229 -- Added documentation of the FieldFile methods that ↵Russell Keith-Magee
are exposed by FileField and ImageField. Thanks to Gabriel Hurley for the draft patch. Backport of r13202 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-09[1.1.X] Fixed #12997 -- Added markup for methods in the queryset docs. ↵Russell Keith-Magee
Thanks to Ramiro Morales for the patch. Backport of r13162 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-09[1.1.X] Fixed #13282 -- Clarified documentation around week_day filtering in ↵Russell Keith-Magee
querysets. Thanks to wangchun, Ramiro Morales and timo. Backport of r13155 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-09[1.1.X] Fixed #13455 -- Clarified the interaction of values() and extra(). ↵Russell Keith-Magee
Thanks to Rupe for the report and draft text. Backport of r13145 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-03[1.1.X] Fixed #13099 - incorrect SQL for exclude() exampleKaren Tracey
Thanks to istruble for the report. r12936 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-12[1.1.X] Fixed #11711 -- clarified that ValuesQuerySets are not lists per se.Karen Tracey
It rarely hurts to think of the returned result from a values() or values_list() call as a list, but it's really an iterable and sometimes the difference matters. r12743 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-20[1.1.X] Fixed `fieldlookup` docs cross-reference directive, and added it to ↵Justin Bronn
the queryset reference. Refs #12930. Backport of r12808 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-08[1.1.X] Fixed #12024: Changed admin code to avoid raising an exception when ↵Karen Tracey
a field listed in raw_id_fields has limit_choices_to specified as a Q object. Tweaked a test to trigger the condition and verify the fix. Finally, documented that limit_choices_to specified as a Q object has no effect on the choices available for fields listed in raw_id_fields, and removed another incorrect note that claimed limit_choices_to had no effect on inlines in the admin. r12728 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-24[1.1.X] Fixed #12538 -- Added a note that pickles aren't stable during ↵Russell Keith-Magee
version updates. Thanks to snow0x2d0 for the suggestion. Backport of r12560 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23[1.1.X] Fixed #12837 -- Clarified the naming strategy for m2m intermediate ↵Russell Keith-Magee
tables. Thanks to Ramiro Morales for the report and patch. Backport of r12516 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-22[1.1.X] Fixed #12620 - Refer to better fieldname in defer docs. Thanks, dwillis.Jannis Leidel
Backport of r12462. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-16[1.1.X] Fixed #12622 - exists() mentioned in 1.1 docsLuke Plant
Thanks for the report kmike. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-16[1.1.X] Created a 'DB optimization' topic, with cross-refs to relevant sections.Luke Plant
Also fixed #10291, which was related, and cleaned up some inconsistent doc labels. Backport of r12229 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-08[1.1.X] Updated the docs to suggest using ``*args, **kwargs`` when ↵Russell Keith-Magee
implementing model save methods. Thanks to Jeff Croft for the report. Partial backport of r12118 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-26[1.1.X] Fixed several broken and redirecting URLs in the documentation ↵Gary Wilson Jr
(fixes #12219, refs #12427). Backport of r11994 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-26[1.1.X] Fixed #9465 -- Simplified API Reference documentation titles for ↵Gary Wilson Jr
easier lookup and made first-level heading styles consistent. Thanks, adamnelson. Backport of r11990 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-12[1.1.X] Fixed #12204 -- Corrected the use of :djadmin: links in the testing ↵Russell Keith-Magee
docs, plus updated a lot of old-style markup in the django-admin docs. Thanks to Art_S for the report. Backport of r11734 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-28[1.1.X] Fixed #9674 - documented app_label.Luke Plant
Thanks to andymckay for the report and jpaulett for the patch. Backport for [11596] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-23[1.1.X] Fixed #11931: Removed mention of nonexistent get_sql() method for ↵James Bennett
arguments to limit_choices_to. Since the correct reference involves undocumented ORM internals, this simply removes the reference entirely in favor of publicly-documented use of Q objects. Backport of [11591] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-13[1.1.X] Fixed #6047 -- Minor correction to the documentation regarding regex ↵Russell Keith-Magee
field lookups. Thanks to Richard D. Worth for the suggestion, and Steve Holden for the text. Merge of r11541 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-13[1.1.X] Fixed #11592 -- Corrected the grammar in the queryset docs. Thanks ↵Russell Keith-Magee
to Shannon Bradshaw for the report. Merge of r11539 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11561 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-24Fixed #11527 -- Added unit tests and documentation for the use of F() ↵Russell Keith-Magee
expressions in single object updates. Thanks to Zachary Voase for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-15Fixed #11235 -- Added a missing clause from some sample SQL in the queryset ↵Russell Keith-Magee
docs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-24Fixed #11354 -- Remove stray whitespace in queryset docs. Thanks to flebel ↵Russell Keith-Magee
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-17Fixed #9919 -- Added note on the need to mark transactions as dirty when ↵Russell Keith-Magee
using raw SQL. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-10Fixed #10981 -- Clarified documentation regarding lazy cross-application ↵Russell Keith-Magee
relationships. Thanks to Ramiro for the suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-22Added a `QuerySet.ordered` property to check if a queryset is already ↵Jacob Kaplan-Moss
ordered. Refs #10163. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-16Fixed #10776 -- Added metadata targets for the contrib.admin docs, and used ↵Russell Keith-Magee
one of those targets to clarify the SlugField docs. Thanks to ernop for the suggestion, and timo for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-16Fixed #10812 -- Corrected typo in aggregation docs. Thanks to uzi for the ↵Russell Keith-Magee
report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-09Fixed #10647: intermediary tables between two umanaged models are no longer ↵Jacob Kaplan-Moss
created. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03Fixed a whole bunch of small docs typos, errors, and ommissions.Jacob Kaplan-Moss
Fixes #8358, #8396, #8724, #9043, #9128, #9247, #9267, #9267, #9375, #9409, #9414, #9416, #9446, #9454, #9464, #9503, #9518, #9533, #9657, #9658, #9683, #9733, #9771, #9835, #9836, #9837, #9897, #9906, #9912, #9945, #9986, #9992, #10055, #10084, #10091, #10145, #10245, #10257, #10309, #10358, #10359, #10424, #10426, #10508, #10531, #10551, #10635, #10637, #10656, #10658, #10690, #10699, #19528. Thanks to all the respective authors of those tickets. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31A whole lotta documentation fixes: Fixes #8704, #8826, #8980, #9243, #9343, ↵Jacob Kaplan-Moss
#9529, git-svn-id: http://code.djangoproject.com/svn/django/trunk@10303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31Fixed #10553 -- Corrected several uses of `URLconf` in documentation and ↵Gary Wilson Jr
comments, according to the Django style guide. Based on patch from rduffield. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31Fixed #10389, #10501, #10502, #10540, #10562, #10563, #10564, #10565, ↵Gary Wilson Jr
#10568, #10569, #10614, #10617, #10619 -- Fixed several typos as well as a couple minor issues in the docs, patches from timo, nih, bthomas, rduffield, UloPe, and sebleier@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed a few class references in the model field docs.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #10076 -- Documented invalid arguments for `FileField`, based on patch ↵Gary Wilson Jr
from timo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #9853 -- Added information to the model date/time fields to note the ↵Gary Wilson Jr
Python objects used to represent them. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-25Fixed #10574 -- Documented interaction between annotations and order_by.Malcolm Tredinnick
In the future, I'd like to fix this properly, but the current behavior has the advantage of being consistent across the board (and changing it everywhere is backwards-incompatible with documented functionality). git-svn-id: http://code.djangoproject.com/svn/django/trunk@10172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-24Fixed #10329 -- Added link target for get_FOO_display, get_next_by_FOO, and ↵Russell Keith-Magee
get_previous_by_FOO. Thanks to rctay for the report, and timo for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-23Added 1.1 beta release notes.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-21Corrected syntax typos in a couple of versionadded directives.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-20Added some further clarification to the docs for Meta.managed.Malcolm Tredinnick
Not sure if any of these are noticed as omissions yet; it's too new. Primarily trying to head off questions in the future. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-19Fixed #10546 -- Fixed a docs typo noticed by carljm.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-19Fixed #5420 -- Added support for delayed loading of model fields.Malcolm Tredinnick
In extreme cases, some fields are expensive to load from the database (e.g. GIS fields requiring conversion, or large text fields). This commit adds defer() and only() methods to querysets that allow the caller to specify which fields should not be loaded unless they are accessed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-19Added some documentation explaining "managed=False" vs. "proxy=True".Malcolm Tredinnick
These features look similar, but they're not identical. They can't be merged into one (without requiring at least two Meta parameters anyway), so we've made them have APIs that match their natural use-cases most easily. Anyway, the documentation explains both the details and gives some simple to follow rules. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-18Fixed #10356 -- Added pure-Python inheritance for models (a.k.a proxy models).Malcolm Tredinnick
Large portions of this are needed for #5420, so I implemented it fully. Thanks to Ryan Kelly for an initial patch to get this started. Refs #5420. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-09Fixed #3163 -- Add a "Meta.managed" option to models.Malcolm Tredinnick
This allows a model to be defined which is not subject to database table creation and removal. Useful for models that sit over existing tables or database views. Thanks to Alexander Myodov, Wolfgang Kriesing and Ryan Kelly for the bulk of this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-09Made a couple of cross-references in the model fields documentaiton consistent.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10007 bcc190cf-cafb-0310-a4f2-bffc1f526a37