Viicos
6bf8ca7b16
[5.0.x] Added missing import in docs/ref/models/expressions.txt.
...
Backport of e28bd6776d
from main
2023-12-15 11:17:32 +01:00
KimSia Sim
b4a29210cf
[5.0.x] Updated conditions to retrieve primary keys in bulk_create() docs.
...
Backport of c9ce764f59
from main.
2023-11-29 13:00:32 +01:00
Mariusz Felisiak
ddbe5c86e8
[5.0.x] Fixed #34944 -- Made GeneratedField.output_field required.
...
Regression in f333e3513e
.
Backport of 5875f03ce6
from main
2023-11-14 20:22:33 +01:00
Jacob Walls
97a78121b3
[5.0.x] Fixed typos in docs/ref/models/fields.txt.
...
Backport of 427f0ed98d
from main
2023-11-09 09:58:53 +03:00
Sarah Boyce
dfdca516ea
[5.0.x] Fixed typos in docs/ref/models/expressions.txt.
...
Backport of 8992a0489c
from main
2023-10-28 14:22:00 +02:00
Mariusz Felisiak
415ef34c4c
[5.0.x] Added missing pycon directives in various docs.
...
Backport of 718b32c691
from main
2023-10-25 12:27:56 +02:00
Tim Bell
8b18e0bb3b
[5.0.x] Fixed #27403 -- Doc'd that QuerySet.prefetch_related() doesn't 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 ee104251c4
from main
2023-10-25 10:22:56 +02:00
lufafajoshua
d4bbdf5337
[5.0.x] Fixed #34808 -- Doc'd aggregate function's default argument.
...
Backport of 8adc7c86ab
from main
2023-10-11 16:10:30 -03:00
David Sanders
0e34ac8981
[5.0.x] Refs #31435 -- Doc'd potential infinite recursion when accessing model fields in __init__.
...
Backport of e47298aec4
from main
2023-10-05 14:33:24 -03:00
Mariusz Felisiak
6e7c8cc42e
[5.0.x] Refs #22936 -- Doc'd Lookup.prepare_rhs.
...
Backport of 91cb2d0b48
from main
2023-10-05 15:26:56 +02:00
David Sanders
fb5dd118e9
[5.0.x] Refs #34808 -- Doc'd that aggregation functions on empty groups can return None.
...
Backport of 78b5c90753
from main
2023-09-21 13:17:32 -03:00
Clément Escolano
cac94dd8aa
Fixed #33651 -- Added support for prefetching GenericForeignKey.
...
Co-authored-by: revanthgss <revanthgss@almabase.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-09-18 13:23:21 +02:00
Mariusz Felisiak
88b5b7b8e5
Corrected QuerySet.prefetch_related() note about GenericRelation().
...
GenericRelation is a reverse generic relationship so it's always
homogeneous. Mentioning this as a restriction is confusing.
2023-09-16 06:57:38 +02:00
Natalia
691f70c477
Fixed #24561 -- Added support for callables on model fields' choices.
2023-09-14 10:15:33 -03:00
Jeremy Nauta
f333e3513e
Fixed #31300 -- Added GeneratedField model field.
...
Thanks Adam Johnson and Paolo Melchiorre for reviews.
Co-Authored-By: Lily Foote <code@lilyf.org>
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-09-07 06:19:08 +02:00
Nick Pope
500e01073a
Fixed #31262 -- Added support for mappings on model fields and ChoiceField's choices.
2023-08-30 22:57:40 -03:00
Mariusz Felisiak
9c37103a98
Refs #33507 -- Doc'd using UUID data type on MariaDB 10.7+ in UUIDField docs.
...
Follow up to 7cd187a5ba
.
2023-08-25 11:24:21 +02:00
Mariusz Felisiak
2b582387d5
Fixed #34760 -- Dropped support for SQLite < 3.27.
2023-08-04 06:35:13 +02:00
Mariusz Felisiak
b719688b21
Fixed #34761 -- Dropped support for MySQL < 8.0.11.
2023-08-03 18:54:29 +02:00
Almaz Kunpeissov
5a3725594f
Corrected pycon formatting in some docs.
2023-08-01 08:46:44 +02:00
John Parton
fff14736f1
Fixed #34331 -- Added QuerySet.aiterator() support for prefetch_related().
2023-07-31 21:17:36 +02:00
John Parton
af0c5caff7
Fixed #34749 -- Corrected QuerySet.acreate() signature in docs.
2023-07-28 18:05:19 +02:00
Mariusz Felisiak
02376f1f53
Added missing backticks in docs.
2023-07-21 12:54:38 +02:00
nessita
addbc90049
Fixed typo in docs/ref/models/querysets.txt.
...
Removed assignment in example for Blog annotation to match shown result.
2023-07-20 19:45:44 +02:00
Vyacheslav Dmitriev
b126f69416
Refs #30052 -- Clarified that defer() and only() do not work with aggregated fields.
2023-07-20 14:02:17 -03:00
Simon Charette
595a2abb58
Fixed #34701 -- Added support for NULLS [NOT] DISTINCT on PostgreSQL 15+.
2023-07-19 21:42:27 +02:00
Thomas Chaumeny
89c7454dbd
Fixed #34698 -- Made QuerySet.bulk_create() retrieve primary keys when updating conflicts.
2023-07-10 13:17:28 +02:00
Akash Kumar Sen
a40b0103bc
Fixed #30382 -- Allowed specifying parent classes in force_insert of Model.save().
2023-06-29 21:52:52 +02:00
nessita
6799288342
Added dedicated section for output_field in query expressions docs.
2023-06-27 15:05:08 -03:00
Mariusz Felisiak
c4a09499aa
Fixed typo in docs/ref/models/querysets.txt.
2023-06-27 12:54:11 +02:00
Nick Pope
f8092ee9ad
Improved style of n-tuple wording in docs and comments.
2023-06-23 09:29:35 +02:00
Anders Kaseorg
b81e974e9e
Fixed #34604 -- Corrected fallback SQL for n-ary logical XOR.
...
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-06-08 20:41:18 +02:00
Stefan Brand
eb9df03a43
Corrected documentation of Log database function.
2023-05-24 05:29:50 +02:00
Mariusz Felisiak
93830abf76
Updated broken links in docs.
2023-05-17 12:13:10 +02:00
Ian Foote
7414704e88
Fixed #470 -- Added support for database defaults on fields.
...
Special thanks to Hannes Ljungberg for finding multiple implementation
gaps.
Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for
reviews.
2023-05-12 19:11:40 +02:00
Mariusz Felisiak
72a86ceb33
Fixed #34558 -- Fixed QuerySet.bulk_create() crash with Now() on Oracle.
2023-05-11 18:22:55 +02:00
Tom Forbes
23d24f82a7
Doc'd that Count("*") is equivalent to COUNT(*) SQL.
2023-04-27 11:52:54 +02:00
Mariusz Felisiak
c487634c10
Added meaningful titles to ..admonition:: directives.
2023-04-21 12:03:59 +02:00
David Sanders
0494efddc4
Fixed #34440 -- Doc'd that & queryset operator works similar to chaining.
2023-04-20 08:37:29 +02:00
Sage Abdullah
01ae9d4ca9
Fixed #34435 -- Doc'd that JSONField.default must be a callable.
2023-04-19 20:51:42 +02:00
T. Franzel
a2eaea8f22
Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields.
2023-03-21 19:44:41 +01:00
django-bot
14459f80ee
Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.
2023-03-01 13:03:56 +01:00
Joseph Victor Zammit
ba755ca131
Refs #34140 -- Corrected rst code-block and various formatting issues in docs.
2023-02-28 12:21:37 +01:00
Adam Johnson
f9fe062de5
Doc'd that Meta.indexes is preferred to Field.db_index.
2023-02-24 09:08:59 +01:00
Xavier Fernandez
5b3d3e400a
Fixed #34338 -- Allowed customizing code of ValidationError in BaseConstraint and subclasses.
2023-02-23 10:58:20 +01:00
Xavier Fernandez
ad18a0102c
Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint.
2023-02-22 09:37:58 +01:00
tschilling
c5808470aa
Fixed #34280 -- Allowed specifying different field values for create operation in QuerySet.update_or_create().
2023-02-14 11:50:35 +01:00
Carlton Gibson
534ac48297
Refs #34140 -- Applied rst code-block to non-Python examples.
...
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for
reviews.
2023-02-10 19:19:13 +01:00
dennisvang
7bb741d787
Fixed #34325 -- Corrected wording in PercentRank() docs.
...
This is consistent with the terminology used for the percent_rank()
function in SQLite docs and PostgreSQL docs.
2023-02-10 14:07:48 +01:00
noFFENSE
5cd1385356
Fixed #34242 -- Doc'd that primary key is set to None when deleting objects.
2023-01-20 09:36:36 +01:00