summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2013-02-16[1.5.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
2013-01-15[1.5.x] Fixed #19605 - Removed unused url imports from doc examples.Tim Graham
Thanks sergzach for the suggestion. Backport of 43f89e0ad6 from master
2013-01-07[1.5.x] Created special PostgreSQL text indexes when unique is TrueClaude Paroz
Refs #19441. Backport of c698c55966 from master.
2013-01-02[1.5.x] Fixed #19516 - Fixed remaining broken links.Tim Graham
Added -n to sphinx builds to catch issues going forward. Backport of 9b5f64cc6e from master.
2012-12-26[1.5.X] Fixed broken links, round 3. refs #19516Tim Graham
Backport of b3a8c9dab8 from master
2012-12-25[1.5.X] Fixed more broken links. refs #19516Tim Graham
Backport of 9c5a6adf33 from master
2012-11-28[1.5.x] Fixed #19374 -- Typo in docs/ref/models/instances.txt.Jason Yan
Backport of eeaab083f from master.
2012-11-22[1.5.X] Fixed #18974 - Warned against using models.permalinkTim Graham
Thanks dstufft for the draft patch. Backport of 0e3690d230 from master
2012-11-22[1.5.X] Documented behavior of get_or_create when multiple objects are returned.Tim Graham
Thanks Matt Lauber for the patch. Backport of 71a3162a70 from master
2012-11-19[1.5.X] Fixed typo in docs/ref/models/querysets.txtAnton Danilchenko
Backport of 76859e6eab from master
2012-11-09[1.5.x] Merge pull request #506 from gwrtheyrn/ipv6_doc_fixTim Graham
Fixed invalid ipv4 mapped ipv6 addresses in docs Backport of 19eb56a277291de8c25a0edcc7af111dac7518af from master
2012-11-05[1.5.X] Fixed #15591 - Clarified interaction between ModelForm and model ↵Tim Graham
validation. Backport of d3fd8a1512 from master
2012-11-04[1.5.x] Added multi-column indexes to the 1.5 release notes. Backport of ↵Alex Gaynor
957787ace0a14fa2ee2539d47a64b266bc93b6bd.
2012-11-04[1.5.x] Merge pull request #493 from edavis/fix-get-foo-display-docsAlex Gaynor
Fixed formatting of get_FOO_display example
2012-11-04[1.5.x] Fixed #5805 -- it is now possible to specify multi-column indexes. ↵Alex Gaynor
Thanks to jgelens for the original patch. Backport of 4285571c5a9bf6ca3cb7c4d774942b9ae5b537e4.
2012-11-03[1.5.X] Fixed #17549 -- Added a clickable link for URLFields in admin change ↵Ulrich Petri
list. Backport of ac2052ebc84c45709ab5f0f25e685bf656ce79bc from master.
2012-11-02[1.5.x] Deprecated depth kwarg on select_related.Preston Holmes
This is the start of a deprecation path for the depth kwarg on select_related. Removing this will allow us to update select_related so it chains properly and have an API similar to prefetch_related. Thanks to Marc Tamlyn for spearheading and initial patch. refs #16855
2012-10-20Fixed #13869 - Warned that QuerySet.iterator() doesn't affect DB driver ↵Tim Graham
caching; thanks jtiai for the suggestion.
2012-10-18Fixed #18046 - Documented than an index is created by default for ↵Tim Graham
ForeignKeys; thanks jbauer for the suggestion.
2012-10-07Added section about URL reversion to URL mapper document.Ramiro Morales
2012-10-06Fixed #17435 - Clarified that QuerySet.update returns the number of rows matchedTim Graham
2012-10-05Merge pull request #425 from Osmose/queryset_doc_typoPreston Holmes
Fixed typo in queryset docs under update method.
2012-10-05Fixed typo in queryset docs under update method.Michael Kelly
2012-10-03Fixed #18413 - Noted that a model's files are not deleted when the model is ↵Tim Graham
deleted. Thanks lawgon for the report.
2012-09-30Corrected links to only()/defer() in Model documentationAnssi Kääriäinen
Refs #18306
2012-09-28Fixed #18676 -- Allow fast-path deletion of objectsAnssi Kääriäinen
Objects can be fast-path deleted if there are no signals, and there are no further cascades. If fast-path is taken, the objects do not need to be loaded into memory before deletion. Thanks to Jeremy Dunck, Simon Charette and Alex Gaynor for reviewing the patch.
2012-09-20Fixed #18934 - Removed versionadded/changed annotations for Django 1.3Tim Graham
2012-09-19Fixed #15325 - Added a link to RelatedManager in the ManytoManyField docs; ↵Tim Graham
thanks jammon for the suggestion.
2012-09-15Clearer wording for defer docsPreston Holmes
2012-09-08Updated print statements to work with py3; thanks Claude Paroz noting this.Tim Graham
2012-09-08Fixed #18478 - Documented how to use a mutable default in a model field.Tim Graham
2012-09-08Fixed #17156 -- Added documentation examples for exists()Tim Graham
Thanks mrmagooey for the draft patch.
2012-09-08Avoided mixing dates and datetimes in the examples.Aymeric Augustin
Refs #16023.
2012-09-07specify any orderable field can be specified in get_latest_by, closes #18875Dan Loewenherz
2012-09-05Fixed #18904 - Typo in MySQL link; thanks Johie Anderson for the report.Tim Graham
2012-08-30Fixed #18883 -- added a missing self parameter in the docsAlex Gaynor
2012-08-29Replaced many smart_bytes by force_bytesClaude Paroz
In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
2012-08-26Fixed typo in model fields reference docs.Ramiro Morales
2012-08-21Fixed #18637 - Updated some documentation for aspects of models that are ↵Tim Graham
ModelForm specific, not admin specific. Thanks Ben Sturmfels for the patch.
2012-08-12Fixed #18306 -- Made deferred models issue update_fields on saveAndrei Antoukh
Deferred models now automatically update only the fields which are loaded from the db (with .only() or .defer()). In addition, any field set manually after the load is updated on save.
2012-08-08Fix #18062: Document best practices for choices in model fields.James Bennett
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-03Fixed #15932 - Documented how to supress multiple reverse relations to the ↵Tim Graham
same model. Thanks Claude Paroz for the patch.
2012-07-24Clarified default name of M2M relationship DB table.Ramiro Morales
2012-07-17Fixed #17788 -- Added batch_size argument to qs.bulk_create()Anssi Kääriäinen
The qs.bulk_create() method did not work with large batches together with SQLite3. This commit adds a way to split the bulk into smaller batches. The default batch size is unlimited except for SQLite3 where the batch size is limited to 999 SQL parameters per batch. Thanks to everybody who participated in the discussions at Trac.
2012-07-07Removed Django 1.0-specific sections.Aymeric Augustin
2012-07-01Fixed #17436 - Added warning about overriding Model.__init__()Tim Graham
Thanks zsiciarz for the draft patch.
2012-06-30Fixed #18145 -- Improved documentation of unique_together type fieldsRaúl Cumplido
2012-06-26Fixed #17485 -- Made defer work with select_relatedAnssi Kääriäinen
This commit tackles a couple of issues. First, in certain cases there were some mixups if field.attname or field.name should be deferred. Field.attname is now always used. Another issue tackled is a case where field is both deferred by .only(), and selected by select_related. This case is now an error. A lot of thanks to koniiiik (Michal Petrucha) for the patch, and to Andrei Antoukh for review.
2012-06-07Removed references to changes made in 1.2.Aymeric Augustin
Thanks Florian Apolloner for the patch.