Simon Charette
daf7d482db
Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.
...
Once the deprecation period ends CheckConstraint.check() can become the
documented method that performs system checks for BaseConstraint
subclasses.
2024-03-01 07:15:32 +01:00
David Sanders
7714ccfeae
Refs #34964 -- Doc'd that Q expression order is preserved.
2024-02-28 11:41:06 +01:00
Adam Johnson
7ba6c9edc5
Fixed #28011 -- Corrected Field.hidden docs.
2024-02-17 17:17:23 +01:00
jordanbae
4fec1d2ce3
Fixed #34949 -- Clarified when UniqueConstraints with include/nulls_distinct are not created.
2024-01-15 13:42:02 +01:00
Aivars Kalvans
f92641a636
Fixed #28344 -- Allowed customizing queryset in Model.refresh_from_db()/arefresh_from_db().
...
The from_queryset parameter can be used to:
- use a custom Manager
- lock the row until the end of transaction
- select additional related objects
2024-01-15 10:55:14 +01:00
Salvo Polizzi
3915d4c70d
Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave().
2024-01-02 08:42:33 +01:00
Nick Pope
94b6f101f7
Fixed #29049 -- Added slicing notation to F expressions.
...
Co-authored-by: Priyansh Saxena <askpriyansh@gmail.com>
Co-authored-by: Niclas Olofsson <n@niclasolofsson.se>
Co-authored-by: David Smith <smithdc@gmail.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Abhinav Yadav <abhinav.sny.2002@gmail.com>
2023-12-30 08:24:30 +01:00
Mariusz Felisiak
0be6dde817
Corrected code-block directives in docs.
2023-12-28 19:52:15 +01:00
Viicos
e28bd6776d
Added missing import in docs/ref/models/expressions.txt.
2023-12-15 11:17:06 +01:00
KimSia Sim
c9ce764f59
Updated conditions to retrieve primary keys in bulk_create() docs.
2023-11-29 11:57:53 +01:00
Aman Pandey
0fcd72bc48
Fixed #34633 -- Made create() method of reverse many-to-one managers clear prefetch_related() cache.
2023-11-28 05:46:04 +01:00
Mariusz Felisiak
5875f03ce6
Fixed #34944 -- Made GeneratedField.output_field required.
...
Regression in f333e3513e
.
2023-11-14 20:22:07 +01:00
Jacob Walls
427f0ed98d
Fixed typos in docs/ref/models/fields.txt.
2023-11-09 09:58:06 +03:00
Sarah Boyce
e4d012ca05
Refs #29850 -- Added exclusion support to window frames.
2023-10-30 12:04:55 +01:00
Sarah Boyce
6375cee490
Refs #29850 -- Added RowRange support for positive integer start and negative integer end.
2023-10-28 15:16:07 +02:00
Sarah Boyce
8992a0489c
Fixed typos in docs/ref/models/expressions.txt.
2023-10-28 14:21:15 +02:00
Mariusz Felisiak
718b32c691
Added missing pycon directives in various docs.
2023-10-25 12:27:27 +02:00
Tim Bell
ee104251c4
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.
2023-10-25 09:49:33 +02:00
lufafajoshua
8adc7c86ab
Fixed #34808 -- Doc'd aggregate function's default argument.
2023-10-11 15:17:36 -03:00
David Sanders
e47298aec4
Refs #31435 -- Doc'd potential infinite recursion when accessing model fields in __init__.
2023-10-05 14:19:43 -03:00
Mariusz Felisiak
91cb2d0b48
Refs #22936 -- Doc'd Lookup.prepare_rhs.
2023-10-05 15:26:02 +02:00
Mariusz Felisiak
f9e9526800
Fixed #34873 -- Added QuerySet.explain() support for GENERIC_PLAN option on PostgreSQL 16+.
2023-09-26 12:05:26 +02:00
David Sanders
78b5c90753
Refs #34808 -- Doc'd that aggregation functions on empty groups can return None.
2023-09-21 12:14:15 -03:00
Mariusz Felisiak
3623a0c079
Fixed #34850 -- Dropped support for MariaDB 10.4.
2023-09-19 15:06:05 +02:00
Mariusz Felisiak
2abf417c81
Refs #27236 -- Removed Meta.index_together per deprecation timeline.
2023-09-18 22:12:40 +02:00
Mariusz Felisiak
295467c04a
Removed versionadded/changed annotations for 4.2.
...
This also removes remaining versionadded/changed annotations for older
versions.
2023-09-18 22:12:40 +02: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