summaryrefslogtreecommitdiff
path: root/docs/topics/db
AgeCommit message (Collapse)Author
2023-03-22[4.2.x] Fixed #34409 -- Doc'd limitation of dictfetchall() and ↵Jesper Olsson
namedtuplefetchall() examples. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Backport of 216eb63883050f6a3bf5d306e42972e7a6b6dff5 from main
2023-03-01[4.2.x] Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-28[4.2.x] Refs #34140 -- Corrected rst code-block and various formatting ↵Joseph Victor Zammit
issues in docs. Backport of ba755ca13123d2691a0926ddb64e5d0a2906a880 from main
2023-02-10[4.2.x] Refs #34140 -- Applied rst code-block to non-Python examples.Carlton Gibson
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews. Backport of 534ac4829764f317cf2fbc4a18354fcc998c1425 from main.
2023-02-07[4.2.x] Fixed #34310 -- Added deletion example to one-to-one topic.Marcelo Galigniana
Backport of 7c6195ef81075b03a704431b5d08ec597e8573f7 from main
2022-12-15Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo
Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-12-01Refs #33308 -- Deprecated support for passing encoded JSON string literals ↵Simon Charette
to JSONField & co. JSON should be provided as literal Python objects an not in their encoded string literal forms.
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-11-04Refs #33939 -- Improved transaction.on_commit() docs.Adam Johnson
2022-11-02Fixed #34054 -- Created a new fixtures topic.Filip Lajszczak
Moved material from django-admin document into a new document, and added new material. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-09-16Fixed #33966 -- Added support for using KeyTextTransform from lookup.Allen Jonathan David
2022-09-15Described Article-Reporter relationship in many-to-one topic.Pamela Fox
2022-09-09Corrected example of redundant all() in docs.Dhanush
2022-09-06Fixed #33616 -- Allowed registering callbacks that can fail in ↵SirAbhi13
transaction.on_commit(). Thanks David Wobrock and Mariusz Felisiak for reviews.
2022-08-30Refs #30947 -- Changed tuples to lists where appropriate.Alex Morega
2022-08-30Fixed #33958 -- Added imports to examples in "Expressions can reference ↵Iván Camilo Triviño López
transforms" section.
2022-08-26Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.Mariusz Felisiak
Follow up to 2eea361eff58dd98c409c5227064b901f41bd0d6.
2022-08-23Fixed #33939 -- Used functools.partial() in transaction.on_commit() examples.Alex Morega
2022-07-26Fixed #33820 -- Doc'd "true"/"false"/"null" caveat for JSONField key ↵Mariusz Felisiak
transforms on SQLite. Thanks Johnny Metz for the report. Regression in 71ec102b01fcc85acae3819426a4e02ef423b0fa.
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.
2022-05-19Removed unnecessary semicolons in docs about performing raw SQL.Tom Sparrow
2022-05-18Refs #33646 -- Fixed link markup in queries topic doc.Simon Willison
2022-04-28Removed hyphen from pre-/re- prefixes.David
"prepopulate", "preload", and "preprocessing" are already in the spelling_wordlist. This also removes hyphen from double "e" combinations with "pre" and "re", e.g. preexisting, preempt, reestablish, or reenter. See also: - https://ahdictionary.com/word/search.html?q=rerun - https://ahdictionary.com/word/search.html?q=recreate - https://ahdictionary.com/word/search.html?q=predetermined - https://ahdictionary.com/word/search.html?q=reuse - https://ahdictionary.com/word/search.html?q=reopening
2022-04-28Changed "ie." to "i.e." in docs.David
2022-04-26Fixed #33646 -- Added async-compatible interface to QuerySet.Andrew Godwin
Thanks Simon Charette for reviews. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-03-17Added missing backticks to function names.Mariusz Felisiak
2022-03-10Changed some words to use inline markup.David Smith
2022-03-08Rewrote some references to "master".Adam Johnson
Following d9a266d657f66b8c4fa068408002a4e3709ee669.
2022-03-04Fixed #29865 -- Added logical XOR support for Q() and querysets.Ryan Heard
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
2022-02-08Fixed #32518 -- Doc'd that QuerySet.contains() should not be overused.John Hollingsworth
Thanks Tim McCurrach for the idea.
2021-12-30Fixed #27936 -- Rewrote spanning multi-valued relationships docs.Jacob Walls
2021-12-30Added default values to Entry's fields in making queries docs.Mariusz Felisiak
This makes it easier to create a data in examples.
2021-12-28Avoided counting attributes and methods in docs.Mariusz Felisiak
2021-12-15Fixed #16063 -- Adjusted admin changelist searches spanning multi-valued ↵Jacob Walls
relationships. This reduces the likelihood of admin searches issuing queries with excessive joins.
2021-11-12Fixed #33161 -- Enabled durability check for nested atomic blocks in TestCase.Krzysztof Jagiello
Co-Authored-By: Adam Johnson <me@adamj.eu>
2021-09-20Removed versionadded/changed annotations for 3.2.Mariusz Felisiak
2021-08-26Made sentence about Model consistent in docs.Zainab Amir
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-06-15Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵Carlton Gibson
Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
2021-06-08Refs #14357 -- Updated docs about interaction between aggregations and ↵Mariusz Felisiak
QuerySet.order_by(). Obsolete since 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6.
2021-05-20Changed IRC references to Libera.Chat.Mariusz Felisiak
2021-05-17Refs #32720 -- Updated various links in docs to avoid redirects and use HTTPS.Nick Pope
2021-05-17Refs #32720 -- Fixed some broken links in docs.Nick Pope
2021-04-09Fixed #32618 -- Added link to conditional aggregation in aggregation topic ↵Hasan Ramezani
guide.
2021-03-06Fixed #24141 -- Added QuerySet.contains().Johan Schiff
2021-02-22Refs #4027 -- Added Model._state.adding to docs about copying model instances.Johannes Wilm
2021-01-28Modernized custom manager exampleAdam Johnson
Since this example was added 15 years ago in a8ccdd0fcd631e8e928ef20547e1fe3e313dc607, the ORM has gained the ability to do the `COUNT(*)` related query, so do it with the ORM to avoid misleading users that raw SQL is only supported from manager methods.
2021-01-27Changed "Don't overuse count() or exists()" example to Python.Adam Johnson