summaryrefslogtreecommitdiff
path: root/docs/topics/db
AgeCommit message (Collapse)Author
2020-07-28[3.1.x] Fixed #31829 -- Used JSONField __contains lookup on key transforms.sage
Backport of 2d8dcba03aae200aaa103ec1e69f0a0038ec2f85 from master
2020-07-28[3.1.x] Fixed #31836 -- Dropped support for JSONField __contains and ↵Mariusz Felisiak
__contained_by 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". Backport of ba691933cee375195c9c50f333dd4b2a3abbb726 from master.
2020-07-28[3.1.x] Fixed #31835 -- Dropped support for JSONField __contains lookup on ↵Mariusz Felisiak
Oracle. 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". Backport of 02447fb133b53ec7d0ff068cc08f06fdf8817ef7 from master
2020-07-16[3.1.x] Refs #31502 -- Made minor edits to Model._state docs.Adam Johnson
Backport of 5ef6f626347f9ea13915f3cf5b8b045c5b42b102 from master
2020-07-03[3.1.x] Adjusted multi-db example to avoid confusion with DATABASES keys.MansurAliKoroglu
Backport of d88952142bff1c0283a929749fb64c53d07ad91e from master
2020-06-02[3.1.x] Updated link to Celery.David Smith
Backport of 06c8565a4650b359bdfa59f9707eaa0d1dfd7223 from master
2020-06-01[3.1.x] Made small improvement to docs/topics/db/multi-db.txt.Nikita Sobolev
Backport of 682b295c6c3f5a2182bdc8192f0b8b65610fe4b1 from master
2020-05-29[3.1.x] Changed some doc links to use intersphinx.Jon Dufresne
Backport of 494ba27b5fe14e42e815edde6bd4a1216b29c935 from master
2020-05-19[3.1.x] Fixed #31591 -- Clarified "reverse" lookup name in making queries docs.Carlton Gibson
Backport of 5af17babb0f895cf129fdeee92548d2ac12e78e2 from master
2020-05-13[3.1.x] Used :pep: role in various docs.Nick Pope
Backport of a9337b4add01e50ed8ff8d3ef44099a08cba475c from master
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
2019-10-14Refs #26207 -- Removed obsolete note about slow constructing a model with ↵Simon Charette
deferred fields. This is not true since 7f51876 removed the necessity of creating proxy model classes at runtime for each deferred field sets.
2019-09-10Refs #14357 -- Made Meta.ordering not affect GROUP BY queries.Mariusz Felisiak
Per deprecation timeline.
2019-09-10Removed versionadded/changed annotations for 2.2.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-08-20Corrected typo in search docs. (#11673)Dan Swain
2019-07-29Fixed #30656 -- Added QuerySet.bulk_update() to the database optimization docs.daniel a rios
2019-07-29Refs #30656 -- Reorganized bulk methods in the database optimization docs.daniel a rios
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-27Refs #29548 -- Updated docs for MariaDB support.Mariusz Felisiak
2019-05-22Fixed #30419 -- Favored Meta.indexes over Meta.index_together in ↵Akshesh
optimization docs.
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-05-08Used time.monotonic() instead of time.time() where applicable.Przemysław Suliga
time.monotonic() available from Python 3.3: - Nicely communicates a narrow intent of "get a local system monotonic clock time" instead of possible "get a not necessarily accurate Unix time stamp because it needs to be communicated to outside of this process/machine" when time.time() is used. - Its result isn't affected by the system clock updates. There are two classes of time.time() uses changed to time.monotonic() by this change: - measuring time taken to run some code. - setting and checking a "close_at" threshold for for persistent db connections (django/db/backends/base/base.py).
2019-04-23Fixed #30365 -- Fixed syntax highlighting in SQL examples.Daniel Musketa
Sphinx interprets some "%[a-z]" in SQL statements as a "Literal.String.Interpol" which leads to incorrect highlighting.
2019-04-13Fixed #30347 -- Fixed typo in docs/topics/db/aggregation.txt.Daniel Musketa
2019-03-29Removed unnecessary /static from links to PostgreSQL docs.Nick Pope