summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2019-12-02[3.0.x] Fixed #30953 -- Made select_for_update() lock queryset's model when ↵Mariusz Felisiak
using "self" with multi-table inheritance. Thanks Abhijeet Viswa for the report and initial patch. Backport of 0107e3d1058f653f66032f7fd3a0bd61e96bf782 from master
2019-11-28[3.0.x] Fixed #31029 -- Used more specific links to RFCs.Baptiste Mispelon
Backport of ff1b19da6761217ed1b14cc7e94c6438903565d8 from master
2019-11-11[3.0.x] Fixed #30958 -- Used a clearer example in the Cast() docs.Farhaan Bukhsh
Backport of 4cb15450adac4003ed98f4adcb1710c95fd2b919 from master
2019-11-05[3.0.x] Fixed #30928 -- Clarified MySQL/MariaDB support of ↵kola-er
QuerySet.select_for_update() options. Thanks Par Andersson for reporting the issue. Backport of d94d7b113c21d7a0fd802fadb1adbbec8155e880 from master
2019-10-22[3.0.x] Refs #13724 -- Corrected QuerySet signature in docs.Antonio Dudarev
Backport of 6c23b43655f3710cfb1ecc57236405d11a544247 from master
2019-09-23[3.0.x] Refs #29915 -- Doc'd limitation of using pattern lookups with ↵Mariusz Felisiak
UUIDField on PostgreSQL. Backport of 343afa788080fb874bcd10eab1a1a2fede98c526 from master
2019-09-14[3.0.x] Fixed #29823 -- Doc'd limitation of DecimalField on SQLite.Claude Paroz
Backport of b8dff52f440adfb78b40e19ee8bff45373ca2501 from master
2019-09-13[3.0.x] Refs #27910 -- Improved documentation for model field choice ↵Nick Pope
enumeration types. Backport of 1c66767d4e472fea27798812817b8a47c6ae22b3 from master
2019-09-06Fixed #30573 -- Rephrased documentation to avoid words that minimise the ↵Tobias Kunze
involved difficulty. This patch does not remove all occurrences of the words in question. Rather, I went through all of the occurrences of the words listed below, and judged if they a) suggested the reader had some kind of knowledge/experience, and b) if they added anything of value (including tone of voice, etc). I left most of the words alone. I looked at the following words: - simply/simple - easy/easier/easiest - obvious - just - merely - straightforward - ridiculous Thanks to Carlton Gibson for guidance on how to approach this issue, and to Tim Bell for providing the idea. But the enormous lion's share of thanks go to Adam Johnson for his patient and helpful review.
2019-09-04Fixed #27910 -- Added enumeration helpers for use in Field.choices.Shai Berger
These classes can serve as a base class for user enums, supporting translatable human-readable names, or names automatically inferred from the enum member name. Additional properties make it easy to access the list of names, values and display labels. Thanks to the following for ideas and reviews: Carlton Gibson, Fran Hrženjak, Ian Foote, Mariusz Felisiak, Shai Berger. Co-authored-by: Shai Berger <shai@platonix.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-08-29Fixed #25367 -- Allowed boolean expressions in QuerySet.filter() and exclude().Matthew Schinckel
This allows using expressions that have an output_field that is a BooleanField to be used directly in a queryset filters, or in the When() clauses of a Case() expression. Thanks Josh Smeaton, Tim Graham, Simon Charette, Mariusz Felisiak, and Adam Johnson for reviews. Co-Authored-By: NyanKiyoshi <hello@vanille.bid>
2019-08-28Fixed #30733 -- Doc'd that datetime lookups require time zone definitions in ↵Andrew
the database. Note was missing for date, year, iso_year, week, time, hour, minute, and second lookups.
2019-08-27Doc'd for_save argument of Expression.resolve_expression().Matthew Schinckel
2019-08-18Refs #28428 -- Made FileField.upload_to support pathlib.Path.Claude Paroz
2019-08-09Fixed #30688 -- Clarified base_manager_name docs.Carlton Gibson
2019-08-02Fixed #30661 -- Added models.SmallAutoField.Nick Pope
2019-07-31Fixed #30665 -- Added support for distinct argument to Avg() and Sum().Étienne Beaulé
2019-07-25Fixed #30657 -- Allowed customizing Field's descriptors with a ↵Jon Dufresne
descriptor_class attribute. Allows model fields to override the descriptor class used on the model instance attribute.
2019-07-18Refs #30547 -- Clarified that partial UniqueConstraints don't affect model ↵Mariusz Felisiak
validation.
2019-07-08Fixed #30397 -- Added app_label/class interpolation for names of indexes and ↵can
constraints.
2019-06-24Fixed typo in docs/ref/models/indexes.txt.Alexey Opalev
2019-06-22Removed unneeded non-breaking spaces added in 00169bc36Claude Paroz
2019-06-21Fixed #30421 -- Allowed symmetrical intermediate table for self-referential ↵Nadège Michel
ManyToManyField.
2019-06-20Removed unnecessary backslashes from docs.Mariusz Felisiak
2019-06-20Fixed #30547 -- Doc'd how Meta.constraints affect model validation.Swat009
2019-06-11Fixed #30486 -- Fixed the default value of Aggregate.distinct and updated ↵Vyacheslav Ver
example of custom aggregate functions.
2019-06-04Fixed #30505 -- Doc'd how changes in the order of Field.choices affect ↵Caio Ariede
migrations.
2019-05-28Fixed #30491 -- Clarified when save() on object with pk executes INSERT.Brad Solomon
2019-05-27Refs #29548 -- Updated docs for MariaDB support.Mariusz Felisiak
2019-05-20Refs #30062 -- Corrected UniqueConstraint signature in docs.GwynBleidD
2019-05-17Changed docs to link to Python's description of iterable.Jon Dufresne
2019-05-17Fixed #30199 -- Adjusted QuerySet.get_or_create() docs to highlight ↵Alex
atomicity warning.
2019-05-16Fixed typo in expression documentation.Vyacheslav Ver
2019-05-15Changed tuple choices to list in docs.Jon Dufresne
2019-05-07Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the ↵Tobias Kunze
field the relation points to.
2019-05-02Fixed #29529 -- Allowed models.fields.FilePathField to accept a callable path.Mykola Kokalko
2019-04-25Fixed #30362 -- Noted partial indexes and constraints restrictions with ↵Mariusz Felisiak
abstract base classes. Thanks Carlton Gibson for the review.
2019-04-25Fixed UniqueConstraint example in ref/models/constraints.txt.Mariusz Felisiak
2019-04-24Changed tuple Mate.unique_together/permissions to lists in docs.Luke Plant
2019-04-23Fixed #30365 -- Fixed syntax highlighting in SQL examples.Daniel Musketa
Sphinx interprets some "%[a-z]" in SQL statements as a "Literal.String.Interpol" which leads to incorrect highlighting.
2019-04-18Fixed typos in docs, comments, and exception messages.Ville Skyttä
2019-04-16Fixed typo in docs/ref/models/instances.txt.Gary Donovan
2019-04-15Fixed #30326 -- Doc'd how to avoid persistence of F() assignment.sage
2019-03-29Removed unnecessary /static from links to PostgreSQL docs.Nick Pope
2019-03-22Fixed #30271 -- Added the Sign database function.Nick Pope
2019-03-21Refs #30158 -- Added alias argument to Expression.get_group_by_cols().Simon Charette
2019-03-20Fixed #30240 -- Added SHA1, SHA224, SHA256, SHA384, and SHA512 database ↵Nick Pope
functions. Thanks Mariusz Felisiak and Tim Graham for reviews.
2019-03-18Fixed #30253 -- Doc'd how to order nulls in QuerySet.order_by().Paul Wayper
2019-03-07Fixed #29754 -- Added is_dst parameter to Trunc database functions.ahbk
2019-02-25Fixed documentation of database representation for ManyToManyField.Mariusz Felisiak