summaryrefslogtreecommitdiff
path: root/docs/topics/db
AgeCommit message (Collapse)Author
2021-02-22[3.2.x] Refs #4027 -- Added Model._state.adding to docs about copying model ↵Johannes Wilm
instances. Backport of 0fd05df7b5690fb1b675e1b4d9c92bb22ff74360 from master
2021-01-28[3.2.x] Modernized 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. Backport of 59e503b6708d41a44f2aa320272de3e2ecb5d65c from master
2021-01-27[3.2.x] Changed "Don't overuse count() or exists()" example to Python.Adam Johnson
Backport of 8a642b88c31787fde612ba72d4b282e1c2444035 from master
2021-01-19[3.2.x] Corrected versionadded annotations.Mariusz Felisiak
Backport of 73ffc73b68d3c1fc1e51f13963718492303a2941 from master
2021-01-05Fixed #32231 -- Allowed passing None params to QuerySet.raw().Alexander Lyabah
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-12-15Added backticks to code literals in various docs.Jon Dufresne
2020-12-08Fixed #32233 -- Cleaned-up duplicate connection functionality.Florian Apolloner
2020-11-27Fixed #32220 -- Added durable argument to transaction.atomic().Ian Foote
2020-11-27Fixed #25534, Fixed #31639 -- Added support for transform references in ↵Ian Foote
expressions. Thanks Mariusz Felisiak and Simon Charette for reviews.
2020-11-13Changed docs and a code comment to use gender-neutral pronouns.Nick Pope
Follow up to e1b77238171cc96f4451a06fb4682e2378896238.
2020-11-12Fixed #32187 -- Removed unnecessary select_related in queries doc.Hasan Ramezani
2020-10-22Refs #9475 -- Linked through_default docs to related managers methods.Simon Charette
2020-10-08Fixed #32083 -- Added link back to migrating section in multi-db docs example.Carlton Gibson
2020-09-04Fixed #31894 -- Added note about using JSONField key lookups with ↵jpribyl
QuerySet.exclude() in docs.
2020-08-31Corrected note about long names in search docs.Abdullah Dursun
2020-07-28Fixed #31829 -- Used JSONField __contains lookup on key transforms.sage
2020-07-28Fixed #31836 -- Dropped support for JSONField __contains and __contained_by ↵Mariusz Felisiak
lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
2020-07-28Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.Mariusz Felisiak
The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
2020-07-16Refs #31502 -- Made minor edits to Model._state docs.Adam Johnson
2020-07-13Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().Adam Johnson
2020-07-03Adjusted multi-db example to avoid confusion with DATABASES keys.MansurAliKoroglu
2020-06-03Preferred usage of among/while to amongst/whilst.David Smith
2020-06-02Updated link to Celery.David Smith
2020-06-01Made small improvement to docs/topics/db/multi-db.txt.Nikita Sobolev
2020-05-29Changed some doc links to use intersphinx.Jon Dufresne
2020-05-19Fixed #31591 -- Clarified "reverse" lookup name in making queries docs.Carlton Gibson
2020-05-13Used :pep: role in various docs.Nick Pope
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
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-04-29Fixed #31356 -- Changed IRC links to the Freenode webchat.Hasan Ramezani
2020-04-04Fixed #31423 -- Clarified nested atomic() example.Simon Charette
2020-03-25Fixed #31396 -- Added binary XOR operator to F expressions.Hannes Ljungberg
2020-03-17Corrected outdated sentence in One-to-one relationships docs.Philipp Bosch
2020-03-10Fixed #27865 -- Adjusted docs example to avoid confusion with ↵Adam Radwon
models.BaseManager.
2020-03-09Fixed #31350 -- Fixed typo in docs/topics/db/optimization.txt.Shrikrishna Singh
2020-03-06Fixed #31342 -- Clarified docs about using base managers for related objects.Carlton Gibson
2020-02-24Fixed #31303 -- Removed outdated note about symmetrical intermediate table ↵Matheus Cunha Motta
for self-referential ManyToManyField. Follow up to 87b1ad6e7351464c60e751b483d9dfce3a2d3382.
2020-01-29Fixed #31212 -- Updated psycopg links to HTTPS and new location.Jon Dufresne
2020-01-15Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.Mariusz Felisiak
2020-01-06Removed "Don't do that" from docs and error messages.Adam Johnson
It's slightly aggressive and doesn't explain itself.
2019-12-23Removed unnecessary code-block directives in various docs.Jon Dufresne
2019-11-26Used :ticket: role in all tickets links.Sergey Fedoseev
2019-11-20Fixed #27164 -- Fixed an example of using routers in multiple databases docs.Caio Ariede
Make sure that AuthRouter includes ContentType in the same database.
2019-11-18Fixed #30988 -- Deprecated the InvalidQuery exception.Simon Charette
It was barely documented without pointers at its defining location and was abused to prevent misuse of the QuerySet field deferring feature.
2019-11-12Fixed #30828 -- Added how to remove/insert many-to-many relations in bulk to ↵David Foster
the database optimization docs.
2019-11-07Replaced 'n_' prefix with 'number_of_' in docs/topics/db/queries.txt.René Fleschenberg
2019-11-04Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.Mariusz Felisiak
Follow up to 97d3321e89c8d4434927bdbc308db1ccffa99d3b.
2019-10-30Corrected error message in Many-to-many relationships docs.Mariusz Felisiak