summaryrefslogtreecommitdiff
path: root/docs/topics/db
AgeCommit message (Collapse)Author
2026-03-28Fixed #29762 -- Doc'd how database routers fetch related objects.VIZZARD-X
Thanks James Bligh for the review. Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2026-03-10Fixed #36391 -- Doc'd RawSQL usage in docs/topics/db/sql.txt.Amar
2026-02-16Fixed #36918 -- Removed double spaces and fixed minor grammar issues in docs.$ῗἧḡḥ𝐀丂𝓱м𝑒𝑒𝐓
Co-authored-by: Clifford Gama <cliffygamy@gmail.com>
2026-01-18Applied Black's 2026 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/26.1.0
2025-12-17Fixed #27380 -- Added "raw" argument to m2m_changed signals.Mariusz Felisiak
2025-11-21Fixed #36741 -- Linked to custom save()/delete() caveats in ↵VIZZARD-X
docs/ref/models/querysets.txt.
2025-11-21Fixed #36718 -- Added JSONField support for negative array indexing on ↵Clifford Gama
Oracle 21c+.
2025-11-17Fixed #26379 -- Doc'd that the first filter() on a many-to-many relation is ↵Annabelle Wiegart
sticky.
2025-11-13Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries.Kasyap Pentamaraju
2025-10-29Refs #35381 -- Deprecated using None in JSONExact rhs to mean JSON null.Clifford Gama
Key and index lookups are exempt from the deprecation. Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2025-10-29Fixed #35381 -- Added JSONNull() expression.Clifford Gama
Thanks Jacob Walls for the review.
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-10-17Fixed #36665 -- Improved manager usage guidance in ↵Segni Mekonnen
docs/topics/db/optimization.txt.
2025-10-16Refs #28586 -- Copied fetch modes to related objects.Adam Johnson
This change ensures that behavior and performance remain consistent when traversing relationships.
2025-10-16Fixed #28586 -- Added model field fetch modes.Adam Johnson
May your database queries be much reduced with minimal effort. co-authored-by: Andreas Pelme <andreas@pelme.se> co-authored-by: Simon Charette <charette.s@gmail.com> co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2025-10-16Refs #28586 -- Edited related objects documentation.Adam Johnson
This change aims to make this section clearer and ready to add a description of fetch modes.
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