summaryrefslogtreecommitdiff
path: root/docs/topics/db/models.txt
AgeCommit message (Collapse)Author
2025-11-21Fixed #36741 -- Linked to custom save()/delete() caveats in ↵VIZZARD-X
docs/ref/models/querysets.txt.
2025-10-29Fixed #36329 -- Removed non-code custom link text when cross-referencing ↵Clifford Gama
Python objects. Thanks Bruno Alla, Sarah Boyce, and Jacob Walls for reviews. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-08-25Refs #36485 -- Rewrapped docs to 79 columns line length.David Smith
Lines in the docs files were manually adjusted to conform to the 79 columns limit per line (plus newline), improving readability and consistency across the content.
2025-08-25Refs #36485 -- Removed double spaces after periods in sentences.Natalia
2025-08-25Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in ↵David Smith
docs.
2025-05-02Fixed #17461 -- Doc'd the presumed order of foreign keys on the intermediary ↵Clifford Gama
model of a self-referential m2m. Thanks Giannis Terzopoulos and Sarah Boyce for the reviews.
2025-03-21Fixed #36095 -- Introduced lazy references in "Models across files" section.Clifford Gama
2025-03-04Fixed #36128 -- Clarified auto-generated unique constraint on m2m through ↵Clifford Gama
models.
2025-01-02Fixed #36037 -- Fixed default primary key type in docs.Ari Pollak
BigAutoField is the default type for primary keys. In models.txt, the linked anchor shows that the default primary key is a BigAutoField, so it now defers to that section instead of duplicating an (incorrect) type.
2024-10-23Fixed #35731 -- Extended db_default docs.Yash
This added a missing db_default reference in docs/topics/db/models.txt, and added a reference to the DatabaseDefault object.
2024-09-11Refs #35060 -- Fixed the update to update_fields in overridden save() method ↵Clifford Gama
docs. Regression in 3915d4c70d0d7673abe675525b58117a5099afd3.
2024-08-12Fixed #35623 -- Documented that a field cannot be named 'check'.Mohammad Salehi
2024-05-22Removed versionadded/changed annotations for 5.0.Natalia
This also removes remaining versionadded/changed annotations for older versions.
2024-01-02Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave().Salvo Polizzi
2024-01-01Fixed #35072 -- Corrected Field.choices description in models topic.Zowie Beha
2023-08-30 Fixed #31262 -- Added support for mappings on model fields and ↵Nick Pope
ChoiceField's choices.
2023-03-21Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵T. Franzel
form fields.
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-28Refs #34140 -- Corrected rst code-block and various formatting issues in docs.Joseph Victor Zammit
2023-02-10Refs #34140 -- Applied rst code-block to non-Python examples.Carlton Gibson
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
2022-11-14Refs #34099 -- Doc'd that custom Model.save() should update update_fields kwarg.sarahboyce
2022-11-10Improved readability of string interpolation in frequently used examples in ↵Trey Hunner
docs.
2022-08-30Refs #30947 -- Changed tuples to lists where appropriate.Alex Morega
2022-08-26Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.Mariusz Felisiak
Follow up to 2eea361eff58dd98c409c5227064b901f41bd0d6.
2022-05-31Fixed docs build with sphinxcontrib-spelling 7.5.0+.Mariusz Felisiak
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set of nodes for which the text is checked.
2021-09-20Removed versionadded/changed annotations for 3.2.Mariusz Felisiak
2021-06-15Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵Carlton Gibson
Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
2020-12-15Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
2020-10-22Refs #9475 -- Linked through_default docs to related managers methods.Simon Charette
2020-05-04Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and ↵Adam Johnson
comments.
2020-05-01Doc'd Meta inheritance from abstract parents.Greg Kaleka
2020-02-24Fixed #31303 -- Removed outdated note about symmetrical intermediate table ↵Matheus Cunha Motta
for self-referential ManyToManyField. Follow up to 87b1ad6e7351464c60e751b483d9dfce3a2d3382.
2020-01-15Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.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-06-24Fixed typo in docs/topics/db/models.txt.Meysam
2019-06-04Fixed #30505 -- Doc'd how changes in the order of Field.choices affect ↵Caio Ariede
migrations.
2019-05-17Changed docs to link to Python's description of iterable.Jon Dufresne
2019-05-15Changed tuple choices to list in docs.Jon Dufresne
2019-01-15Fixed #9475 -- Allowed RelatedManager.add(), create(), etc. for m2m with a ↵Collin Anderson
through model.
2018-11-15Used auto-numbered lists in documentation.François Freitag
2018-09-25Normalized spelling of "lowercase" and "lowercased".Jon Dufresne
2018-09-14Fixed #29756 -- Doc'd that model field names can't end with an underscore.Tim Graham
2018-09-10Refs #20910 -- Replaced snippet directive with code-block.Curtis Maloney
2018-03-13Fixed #29192 -- Corrected docs regarding overriding fields from abstract ↵ovalseven8
base classes.
2017-10-13Removed incorrect reference to ModelChoiceField in Field.choices docs.LeeHanYeong
2017-09-02Fixed #28332 -- Fixed diamond inheritence example in docs.Jeremy Satterfield
2017-07-11Fixed #28352 -- Corrected QuerySet.values_list() return type in docs examples.Irindu Indeera
2017-04-01Fixed #28003 -- Doc'd what an auto-created OneToOneField parent_link looks like.Simon Charette
Thanks Simon Charette for the draft patch.
2017-03-20Removed extra characters in docs header underlines.Mariusz Felisiak