Paweł Zarębski
562a4824d7
[3.1.x] Fixed example of QuerySet.explain() with flags in docs.
...
Backport of 054ab1e00fe59a103b6b8ff29bc7930c7d492406 from master
2020-09-23 11:48:08 +02:00
Mike Lissner
17a4082078
[3.1.x] Refs #28939 -- Doc’d Prefetch behavior with multiple DBs.
...
Backport of 8c0794ba0da2b5d668a7eb1c167e54beb7f40890 from master
2020-09-17 14:27:31 +02:00
Mariusz Felisiak
462d7837f9
[3.1.x] Corrected exception types in QuerySet docs.
...
Backport of 9a0e5052ed5509cc582b1b3eeaa30f85858fee48 from master
2020-09-13 20:11:00 +02:00
Adam Alton
1e3d8bd3a1
[3.1.x] Removed unnecessary sentence in QuerySet docs.
...
Backport of 6e9c5ee88fc948e05b4a7d9f82a8861ed2b0343d from master
2020-08-07 08:06:21 +02:00
Ramiro Morales
26113b9de1
[3.1.x] Fixed typo in docs/ref/models/querysets.txt.
...
Backport of 51e536178cba9489b9d759f69f72f442af16ba32 from master
2020-07-22 23:37:14 +02:00
Adam Johnson
2b3ca7a5f1
[3.1.x] Doc'd Model.MultipleObjectsReturned docs and improved documentation related with models exceptions.
...
Backport of bc4fea92b296a7eacbd5f89263ca67515feeb53f from master
2020-07-22 20:21:06 +02:00
Adam Johnson
77abe98816
[3.1.x] Refs #24763 -- Moved DoesNotExist to Model class docs.
...
Backport of b5f0efa19c82d274082bcde8a8acae5038667614 from master
2020-07-22 20:20:57 +02:00
Adam Johnson
32e22f0531
[3.1.x] Improved ManyToManyField.through docs.
...
Backport of e7fa8aff432a90b6df9914d63aad239164b6b4d4 from master
2020-07-17 10:48:13 +02:00
Tim Park
dad6973629
[3.1.x] Fixed #31502 -- Documented Model._state.db and Model._state.adding
...
Backport of 697e59d5cf81e6c7e4a06ca98d6e3e16cea486dc from master
2020-07-08 10:06:45 +02:00
Steven Pousty
1a3029b6b4
[3.1.x] Fixed #31743 -- Doc't that managed=False prevents Django from managing tables modifications.
...
Backport of d2c135da4c75079e45661ec609bd72f27dddf2a9 from master
2020-06-26 09:58:55 +02:00
Tobias Krönke
5ba2dfb9d0
[3.1.x] Fixed #31689 -- Doc'd caveat about using bulk_create()'s ignore_conflicts on MariDB and MySQL.
...
Backport of 69e0d9c553bb55dde8d7d1d479a78bfa7093f406 from master
2020-06-15 12:52:45 +02:00
Hasan Ramezani
43254876c2
[3.1.x] Fixed #31650 -- Added note uniqueness of constraints names in docs.
...
Backport of 55556e51fb152c864ddc782d9b56e8b785ccf8bc from master
2020-06-04 07:38:35 +02:00
sage
6789ded0a6
Fixed #12990 , Refs #27694 -- Added JSONField model field.
...
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-08 07:23:31 +02:00
Adam Johnson
83c631ade7
Improved wording in Q() docs.
2020-05-06 06:43:28 +02:00
Adam Johnson
1c2c6f1b51
Fixed a/an typos in "SQL" usage.
2020-05-06 06:35:26 +02:00
Adam Johnson
d17b380653
Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments.
2020-05-04 12:10:47 +02:00
Adam Johnson
787981f9d1
Corrected models.FilePathField signature in docs.
2020-05-04 12:10:41 +02:00
Ian Foote
c226c6cb32
Fixed #20581 -- Added support for deferrable unique constraints.
2020-04-30 10:43:50 +02:00
Hasan Ramezani
d6db186427
Fixed #31514 -- Fixed default form widgets in model fields docs.
2020-04-25 21:20:29 +02:00
Tim Schilling
a92cc84b4a
Refs #31369 -- Deprecated models.NullBooleanField in favor of BooleanField(null=True).
2020-04-24 10:10:45 +02:00
Mariusz Felisiak
cc70a0343e
Fixed term warning on Sphinx 3.0.1+.
...
"term" role became case sensitive in Sphinx 3.0.1.
2020-04-14 09:32:09 +02:00
miigotu
210657b791
Fixed #28184 -- Allowed using a callable for FileField and ImageField storage.
2020-04-08 11:26:17 +02:00
Mariusz Felisiak
69e2cd6fed
Fixed Sphinx warnings on duplicate object descriptions.
2020-04-07 09:48:52 +02:00
Adam Johnson
1cdfe8d912
Prevented (and corrected) single backtick usage in docs.
2020-04-01 14:55:11 +02:00
Adam Johnson
93ed71e058
Fixed #31403 -- Added support for returning fields from INSERT statements on MariaDB 10.5+.
2020-03-31 07:25:50 +02:00
Hasan Ramezani
53b6a466d8
Refs #29724 -- Added is_dst parameter to QuerySet.datetimes().
...
Thanks Simon Charette for the review and Mariusz Felisiak for tests.
2020-03-20 12:55:33 +01:00
Hasan Ramezani
6929f13254
Fixed #31368 -- Doc'd 'expression' parameter of Field.from_db_value()/Expression.convert_value().
2020-03-18 09:37:05 +01:00
Adam Johnson
8c1b073b59
Doc'd return values of as_sql() for Func and query expressions.
2020-03-06 13:02:08 +01:00
Mariusz Felisiak
30ca66eadd
Added missing backticks in various docs.
2020-03-06 11:52:49 +01:00
Andrey Doroschenko
f1016814d8
Fixed #31313 -- Fixed is_upperclass() example in enumeration types docs.
2020-02-27 08:33:05 +01:00
Carlton Gibson
3bbf9a489a
Fixed #31282 -- Corrected RelatedManager docs for using add/remove/set with PKs.
2020-02-18 19:54:29 +01:00
Adam Johnson
382af9b141
Fixed #31003 -- Doc'd and tested return value of QuerySet.bulk_create().
2020-02-10 08:36:50 +01:00
Claude Paroz
c7b97ac3a7
Added missing backtick in instances docs.
2020-01-17 20:26:36 +01:00
Carlton Gibson
29c126bb34
Fixed #31124 -- Fixed setting of get_FOO_display() when overriding inherited choices.
...
Regression in 2d38eb0ab9f78d68c083a5b78b1eca39027b279a
2020-01-15 15:35:22 +01:00
Simon Charette
9e14bc2135
Refs #29260 -- Doc'd Model.save() behavior change in Django 3.0.
2019-12-30 07:49:10 +01:00
Taoup
cebd41e416
Fixed #31110 -- Fixed typo in docs/ref/models/expressions.txt.
2019-12-21 20:33:04 +01:00
Baptiste Mispelon
26cab4e8c1
Fixed #31046 -- Allowed RelatedManager.add()/create()/set() to accept callable values in through_defaults.
2019-12-03 19:47:38 +01:00
Mariusz Felisiak
0107e3d105
Fixed #30953 -- Made select_for_update() lock queryset's model when using "self" with multi-table inheritance.
...
Thanks Abhijeet Viswa for the report and initial patch.
2019-12-02 07:57:19 +01:00
Baptiste Mispelon
ff1b19da67
Fixed #31029 -- Used more specific links to RFCs.
2019-11-27 20:54:38 +01:00
Simon Charette
e9a0e1d4f6
Fixed #30484 -- Added conditional expressions support to CheckConstraint.
2019-11-21 11:56:35 +01:00
Daniel Izquierdo
89abecc75d
Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading deletions while protecting direct ones.
2019-11-19 10:55:05 +01:00
Caio Ariede
555bebe774
Fixed #30987 -- Added models.PositiveBigIntegerField.
2019-11-19 09:34:11 +01:00
Farhaan Bukhsh
4cb15450ad
Fixed #30958 -- Used a clearer example in the Cast() docs.
2019-11-11 09:42:53 +01:00
Hasan Ramezani
153c7956f8
Fixed #24858 -- Added support for get_FOO_display() to ArrayField and RangeFields.
...
_get_FIELD_display() crashed when Field.choices was unhashable.
2019-11-08 10:59:24 +01:00
kola-er
d94d7b113c
Fixed #30928 -- Clarified MySQL/MariaDB support of QuerySet.select_for_update() options.
...
Thanks Par Andersson for reporting the issue.
2019-11-05 14:34:40 +01:00
Carlton Gibson
cabf1fe37e
Refs #30897 -- Made cosmetic edits to QuerySet.explain() documentation.
2019-10-24 15:16:25 +02:00
Nick Pope
55df1750be
Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on MariaDB and MySQL 8.0.18+.
2019-10-24 15:13:26 +02:00
Nick Pope
742961332e
Refs #30897 -- Added support for TREE format to Queryset.explain() on MySQL 8.0.16+.
2019-10-24 15:13:23 +02:00
Antonio Dudarev
6c23b43655
Refs #13724 -- Corrected QuerySet signature in docs.
2019-10-22 14:23:21 +02:00
André Ericson
31174031f1
Fixed #30841 -- Deprecated using non-boolean values for isnull lookup.
2019-10-21 08:44:20 +02:00