summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2020-05-06[3.0.x] Fixed a/an typos in "SQL" usage.Adam Johnson
Backport of 1c2c6f1b51a540bddc7ae95f4d1213688411ca44 from master
2020-05-04[3.0.x] Corrected models.FilePathField signature in docs.Adam Johnson
Backport of 787981f9d1d5abc489a0b069e3353b8ad7aa9778 from master
2020-04-25[3.0.x] Fixed #31514 -- Fixed default form widgets in model fields docs.Hasan Ramezani
Backport of d6db186427d33889e4d2f3b56e02807d51fc0376 from master
2020-04-14[3.0.x] Fixed term warning on Sphinx 3.0.1+.Mariusz Felisiak
"term" role became case sensitive in Sphinx 3.0.1. Backport of cc70a0343ef51ffcc0b1211dd6e7abedc4b43ea6 from master
2020-04-07[3.0.x] Fixed Sphinx warnings on duplicate object descriptions.Mariusz Felisiak
Backport of 69e2cd6fed40f3ecf767609b80ad31f288446e48 from master
2020-04-01[3.0.x] Prevented (and corrected) single backtick usage in docs.Adam Johnson
Backport of 1cdfe8d91215eefaa18c398069dd9c6879a9511d from master.
2020-03-18[3.0.x] Fixed #31368 -- Doc'd 'expression' parameter of ↵Hasan Ramezani
Field.from_db_value()/Expression.convert_value(). Backport of 6929f13254ce42b0a4ee5d677591d47b61023ae7 from master
2020-03-06[3.0.x] Doc'd return values of as_sql() for Func and query expressions.Adam Johnson
Backport of 8c1b073b596af23c02020879219b4e85f15a836d from master
2020-03-06[3.0.x] Added missing backticks in various docs.Mariusz Felisiak
Backport of 30ca66eadd1135d220ae1f0570bb0244c26b9d29 from master
2020-02-27[3.0.x] Fixed #31313 -- Fixed is_upperclass() example in enumeration types docs.Andrey Doroschenko
Backport of f1016814d84b1423cfe0df85644c9870a6bc6b41 from master
2020-02-18[3.0.x] Fixed #31282 -- Corrected RelatedManager docs for using ↵Carlton Gibson
add/remove/set with PKs. Backport of 3bbf9a489afc689eff2f4a0b84af196aa1ef51e7 from master
2020-01-17[3.0.x] Added missing backtick in instances docs.Claude Paroz
Backport of c7b97ac3a7908dab0825f6bdb61b40f641306a8e from master
2020-01-15[3.0.x] Fixed #31124 -- Fixed setting of get_FOO_display() when overriding ↵Carlton Gibson
inherited choices. Regression in 2d38eb0ab9f78d68c083a5b78b1eca39027b279a Backport of 29c126bb349526b5f1cd78facbe9f25906f18563 from master
2019-12-30[3.0.x] Refs #29260 -- Doc'd Model.save() behavior change in Django 3.0.Simon Charette
Backport of 9e14bc2135cb806b66374bac791c79344fff4ded from master
2019-12-21[3.0.x] Fixed #31110 -- Fixed typo in docs/ref/models/expressions.txt.Taoup
Backport of cebd41e41603c3ca77c5b29d6cd20c1bff43827f from master
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.