summaryrefslogtreecommitdiff
path: root/docs/ref/models/querysets.txt
AgeCommit message (Collapse)Author
2023-11-29[5.0.x] Updated conditions to retrieve primary keys in bulk_create() docs.KimSia Sim
Backport of c9ce764f59c1e809b210337980ae10c4b1d0f9be from main.
2023-10-25[5.0.x] Added missing pycon directives in various docs.Mariusz Felisiak
Backport of 718b32c6918037cfc746d7867333d79a3c887a8c from main
2023-10-25[5.0.x] Fixed #27403 -- Doc'd that QuerySet.prefetch_related() doesn't ↵Tim Bell
guarantee transactional consistency. Added a note about the potential race condition in prefetch_related() that could produce an inconsistent result, one that does not correspond to any point in the database history. Backport of ee104251c403fbac83b8475163ff2ac01c567d25 from main
2023-10-11[5.0.x] Fixed #34808 -- Doc'd aggregate function's default argument.lufafajoshua
Backport of 8adc7c86ab85ed91e512bc49056e301cbe1715d0 from main
2023-09-21[5.0.x] Refs #34808 -- Doc'd that aggregation functions on empty groups can ↵David Sanders
return None. Backport of 78b5c9075348aa12da2e024f6ece29d1d652dfdd from main
2023-09-18Fixed #33651 -- Added support for prefetching GenericForeignKey.Clément Escolano
Co-authored-by: revanthgss <revanthgss@almabase.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-09-16Corrected QuerySet.prefetch_related() note about GenericRelation().Mariusz Felisiak
GenericRelation is a reverse generic relationship so it's always homogeneous. Mentioning this as a restriction is confusing.
2023-08-04Fixed #34760 -- Dropped support for SQLite < 3.27.Mariusz Felisiak
2023-08-03Fixed #34761 -- Dropped support for MySQL < 8.0.11.Mariusz Felisiak
2023-07-31Fixed #34331 -- Added QuerySet.aiterator() support for prefetch_related().John Parton
2023-07-28Fixed #34749 -- Corrected QuerySet.acreate() signature in docs.John Parton
2023-07-20Fixed typo in docs/ref/models/querysets.txt.nessita
Removed assignment in example for Blog annotation to match shown result.
2023-07-20Refs #30052 -- Clarified that defer() and only() do not work with aggregated ↵Vyacheslav Dmitriev
fields.
2023-07-10Fixed #34698 -- Made QuerySet.bulk_create() retrieve primary keys when ↵Thomas Chaumeny
updating conflicts.
2023-06-27Fixed typo in docs/ref/models/querysets.txt.Mariusz Felisiak
2023-06-23Improved style of n-tuple wording in docs and comments.Nick Pope
2023-06-08Fixed #34604 -- Corrected fallback SQL for n-ary logical XOR.Anders Kaseorg
An n-ary logical XOR Q(…) ^ Q(…) ^ … ^ Q(…) should evaluate to true when an odd number of its operands evaluate to true, not when exactly one operand evaluates to true.
2023-04-27Doc'd that Count("*") is equivalent to COUNT(*) SQL.Tom Forbes
2023-04-21Added meaningful titles to ..admonition:: directives.Mariusz Felisiak
2023-04-20Fixed #34440 -- Doc'd that & queryset operator works similar to chaining.David Sanders
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-14Fixed #34280 -- Allowed specifying different field values for create ↵tschilling
operation in QuerySet.update_or_create().
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.
2023-01-17Refs #29984 -- Made QuerySet.iterator() without chunk_size raise ValueError ↵Mariusz Felisiak
after prefetch_related(). Per deprecation timeline.
2023-01-17Refs #32365 -- Removed is_dst argument for various methods and functions.Mariusz Felisiak
Per deprecation timeline.
2023-01-17Removed versionadded/changed annotations for 4.1.Mariusz Felisiak
2022-12-06Fixed #24048 -- Corrected QuerySet.only() docs about interaction with defer().Ryan Cheley
2022-11-14Fixed #34099 -- Added release notes for QuerySet.update_or_create() changes.sarahboyce
Follow up to 6cc0f22a73970dd7c0d29d4d8d2ff9e1cc862b30. Thanks Phil Gyford for the report.
2022-11-10Updated documentation and comments for RFC updates.Nick Pope
- Updated references to RFC 1123 to RFC 5322 - Only partial as RFC 5322 sort of sub-references RFC 1123. - Updated references to RFC 2388 to RFC 7578 - Except RFC 2388 Section 5.3 which has no equivalent. - Updated references to RFC 2396 to RFC 3986 - Updated references to RFC 2616 to RFC 9110 - Updated references to RFC 3066 to RFC 5646 - Updated references to RFC 7230 to RFC 9112 - Updated references to RFC 7231 to RFC 9110 - Updated references to RFC 7232 to RFC 9110 - Updated references to RFC 7234 to RFC 9111 - Tidied up style of text when referring to RFC documents
2022-10-21Fixed typo in docs/ref/models/querysets.txt.Ryan Cheley
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-17Removed versionadded/changed annotations for 4.0.Carlton Gibson
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-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-01-25Fixed #29984 -- Added QuerySet.iterator() support for prefetching related ↵Jacob Walls
objects. Co-authored-by: Raphael Kimmig <raphael.kimmig@ampad.de> Co-authored-by: Simon Charette <charette.s@gmail.com>
2022-01-19Fixed #31685 -- Added support for updating conflicts to QuerySet.bulk_create().sean_c_hsu
Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope, and Mariusz Felisiak for reviews.
2021-12-28Avoided counting attributes and methods in docs.Mariusz Felisiak
2021-12-08Refs #33319 -- Added note about commutation of QuerySet's | operator.Ömer Faruk Abacı
2021-11-23Corrected signatures of QuerySet's methods.Mariusz Felisiak
2021-10-04Fixed #32888 -- Doc'd that select_for_update() only locks tables with ↵Hannes Ljungberg
selected columns.
2021-09-22Fixed #33129 -- Dropped support for MariaDB 10.2.Mariusz Felisiak
2021-09-20Removed versionadded/changed annotations for 3.2.Mariusz Felisiak
2021-09-16Fixed #32365 -- Made zoneinfo the default timezone implementation.Carlton Gibson
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews.
2021-08-26Fixed #33046 -- Added note about using length of cached result by ↵Can Sarıgöl
QuerySet.count().
2021-07-29Made minor edits to QuerySet.update_or_create() docs.Abhyudai
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-07-19Fixed #10929 -- Added default argument to aggregates.Nick Pope
Thanks to Simon Charette and Adam Johnson for the reviews.
2021-07-08Fixed #32908 -- Allowed select_for_update(skip_locked) on MariaDB 10.6+.Mariusz Felisiak