summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2019-11-08Fixed #24858 -- Added support for get_FOO_display() to ArrayField and ↵Hasan Ramezani
RangeFields. _get_FIELD_display() crashed when Field.choices was unhashable.
2019-11-05Fixed #30928 -- Clarified MySQL/MariaDB support of ↵kola-er
QuerySet.select_for_update() options. Thanks Par Andersson for reporting the issue.
2019-10-24Refs #30897 -- Made cosmetic edits to QuerySet.explain() documentation.Carlton Gibson
2019-10-24Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on ↵Nick Pope
MariaDB and MySQL 8.0.18+.
2019-10-24Refs #30897 -- Added support for TREE format to Queryset.explain() on MySQL ↵Nick Pope
8.0.16+.
2019-10-22Refs #13724 -- Corrected QuerySet signature in docs.Antonio Dudarev
2019-10-21Fixed #30841 -- Deprecated using non-boolean values for isnull lookup.André Ericson
2019-10-02Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day ↵Anatol Ulrich
lookup.
2019-10-02Added missing import in ref/models/database-functions.txt.Mariusz Felisiak
2019-09-23Refs #29915 -- Doc'd limitation of using pattern lookups with UUIDField on ↵Mariusz Felisiak
PostgreSQL.
2019-09-14Fixed #29823 -- Doc'd limitation of DecimalField on SQLite.Claude Paroz
2019-09-13Refs #27910 -- Improved documentation for model field choice enumeration types.Nick Pope
2019-09-10Refs #14357 -- Made Meta.ordering not affect GROUP BY queries.Mariusz Felisiak
Per deprecation timeline.
2019-09-10Removed versionadded/changed annotations for 2.2.Mariusz Felisiak
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