summaryrefslogtreecommitdiff
path: root/docs/topics/db
AgeCommit message (Collapse)Author
2025-11-17[6.0.x] Fixed #26379 -- Doc'd that the first filter() on a many-to-many ↵Annabelle Wiegart
relation is sticky. Backport of 3c005b5f79bf6d71f3f4c3692ed670e1722b0fb6 from main.
2025-11-13[6.0.x] Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries.Kasyap Pentamaraju
Backport of 7e765a68598b2b798e49bf1f4b431a7bcac085a4 from main.
2025-08-28Fixed #36570 -- Removed unnecessary :py domain from documentation roles.SaJH
Signed-off-by: SaJH <wogur981208@gmail.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-06-13Corrected jsonfield fieldlookup references.Sarah Boyce
2025-05-20Fixed #34262 -- Added support for AnyValue for SQLite, MySQL, Oracle, and ↵ontowhee
Postgresql 16+. Thanks Simon Charette for the guidance and review. Thanks Tim Schilling for the documentation review. Thanks David Wobrock for investigation and solution proposals.
2025-05-16Fixed #33312 -- Raised explicit exception when copying deferred model instances.Simon Charette
Previously save() would crash with an attempted forced update message, and both save(force_insert=True) and bulk_create() would crash with DoesNotExist errors trying to retrieve rows with an empty primary key (id IS NULL). Implementing deferred field model instance copying might be doable in certain cases (e.g. when all the deferred fields are db generated) but that's not trivial to implement in a backward compatible way. Thanks Adam Sołtysik for the report and test and Clifford for the review.
2025-05-14Fixed #36085 -- Added JSONField support for negative array indexing on SQLite.savanto
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-04-27Fixed #36335 -- Fixed typo in docs/topics/db/managers.txt.dbogar89
2025-03-21Fixed #36095 -- Introduced lazy references in "Models across files" section.Clifford Gama
2025-03-18Fixed #36202 -- Added examples of JSONField __contains and __contained_by ↵Clifford Gama
lookups with nested arrays to docs.
2025-03-13Fixed incorrect formatting for inline pluralized code references in docs.Clifford Gama
2025-03-12Fixed #36249 -- Fixed typo in docs/topics/db/queries.txt.hesham hatem
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-12-02Removed question marks from headings in docs/topics/db/fixtures.txt.Anders Hovmöller
2024-11-14Fixed #35887 -- Added imports and admin.site.register to non-partial admin ↵Alexander Lazarević
inline doc examples.
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-10-09Refs #35502 -- Clarified models.py file path in docs/topics/db/queries.txt.Natalia
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-08-05Used :pypi: role in docs where appropriate.Mariusz Felisiak
2024-05-22Removed versionadded/changed annotations for 5.0.Natalia
This also removes remaining versionadded/changed annotations for older versions.
2024-02-01Fixed typo in docs/topics/db/managers.txt.Ebram Shehata
2024-01-31Fixed #35156 -- Removed outdated note about not supporting foreign keys by ↵Ben Cail
SQLite.
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
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-10-30Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt.Natalia
2023-10-30Refs #15578 -- Made cosmetic edits to fixtures docs.Natalia
2023-10-27Fixed #30601 -- Doc'd the need to manually revert all app state on ↵lufafajoshua
transaction rollbacks.
2023-10-26Fixed #15578 -- Stated the processing order of fixtures in the fixtures docs.Leo Suarez
Also, added details about loading multiple fixtures and unified line wrapping at 79 cols. Co-Authored-By: Aniketh Babu <anikethbabu@gmail.com> Co-Authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Natalia Bidart <124304+nessita@users.noreply.github.com>
2023-10-25Added missing pycon directives in various docs.Mariusz Felisiak
2023-10-11Fixed #34808 -- Doc'd aggregate function's default argument.lufafajoshua
2023-09-18Refs #33308 -- Removed support for passing encoded JSON string literals to ↵Mariusz Felisiak
JSONField & co. Per deprecation timeline.
2023-09-18Removed versionadded/changed annotations for 4.2.Mariusz Felisiak
This also removes remaining versionadded/changed annotations for older versions.
2023-08-30 Fixed #31262 -- Added support for mappings on model fields and ↵Nick Pope
ChoiceField's choices.
2023-07-21Added missing backticks in docs.Mariusz Felisiak
2023-06-16Fixed typo in docs/topics/db/fixtures.txt.Ashwin Dharne
2023-06-07Fixed #30355 -- Doc'd interaction between custom managers and ↵Akash Kumar Sen
prefetch_related().
2023-04-20Improved examples in docs about raw SQL queries.Mariusz Felisiak
Regression in 14459f80ee3a9e005989db37c26fd13bb6d2fab2.
2023-04-06Fixed #34463 -- Corrected code-block directives in docs.Yahya Ali
Thanks ExTexan for the report.
2023-03-22Fixed #34409 -- Doc'd limitation of dictfetchall() and namedtuplefetchall() ↵Jesper Olsson
examples. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
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.