Timothy McCurrach
241da3f06e
Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
2021-01-28 07:54:03 +01:00
Jack
2b4b6c8af0
Refs #32372 -- Updated manager name in related objects reference docs.
...
Follow up to 725c549ae7
.
2021-01-22 20:18:44 +01:00
Jack Aitken
725c549ae7
Fixed #32372 -- Made examples in related objects reference docs consistent.
2021-01-22 06:33:33 +01:00
Mariusz Felisiak
d992f4e3c2
Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.
2021-01-14 17:50:04 +01:00
Mariusz Felisiak
396da8b94c
Refs #30841 -- Made isnull lookup raise ValueError for non-boolean values.
...
Per deprecation timeline.
2021-01-14 17:50:04 +01:00
Mariusz Felisiak
b7dd89ed53
Removed versionadded/changed annotations for 3.1.
2021-01-14 17:50:04 +01:00
Hannes Ljungberg
83fcfc9ec8
Fixed #26167 -- Added support for functional indexes.
...
Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews.
Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
2021-01-13 11:47:50 +01:00
Mariusz Felisiak
fdc3d9dcaf
Removed unused import in docs/ref/models/expressions.txt. ( #13879 )
2021-01-12 10:51:38 +01:00
Iuri de Silvio
02391bc98c
Fixed #32313 -- Corrected QuerySet.in_bulk() signature.
2021-01-11 08:00:49 +01:00
Hasan Ramezani
3eb98743dc
Fixed #32315 -- Doc'd FieldFile.path.
2021-01-07 12:51:59 +01:00
Alexander Lyabah
415f50298f
Fixed #32231 -- Allowed passing None params to QuerySet.raw().
2021-01-05 10:37:11 +01:00
Fabio Sangiovanni
2d6c9b97bc
Fixed #32310 -- Fixed note about reverse accessors for intermediate table for self-referential ManyToManyField.
2021-01-04 20:16:07 +01:00
Mariusz Felisiak
74fd233b14
Fixed #32303 -- Bumped minimum supported SQLite to 3.9.0.
2020-12-30 09:01:56 +01:00
Jon Dufresne
fe886eee36
Corrected code-block directives in docs/ref/models/meta.txt.
2020-12-21 07:56:58 +01:00
Tom Forbes
b5e12d490a
Fixed #31007 -- Allowed specifying type of auto-created primary keys.
...
This also changes the default type of auto-created primary keys
for new apps and projects to BigAutoField.
2020-12-15 11:25:46 +01:00
Jon Dufresne
550297d20d
Added backticks to code literals in various docs.
2020-12-15 07:19:00 +01:00
Kevin Marsh
45f4282149
Refs #31792 -- Updated SQL example in Exists() docs.
...
Follow up to 51297a9232
.
2020-12-10 21:01:57 +01:00
Artur Beltsov
48b4bae983
Fixed #32179 -- Added JSONObject database function.
2020-12-02 09:30:50 +01:00
Ian Foote
8b040e3cbb
Fixed #25534 , Fixed #31639 -- Added support for transform references in expressions.
...
Thanks Mariusz Felisiak and Simon Charette for reviews.
2020-11-27 20:42:04 +01:00
David-Wobrock
7b42d34646
Refs #27718 -- Doc'd and tested QuerySet.exists() for combined querysets.
...
Supported since 84c1826ded
.
2020-11-16 15:15:41 +01:00
Caio Ariede
9a3454f604
Fixed #31122 -- Clarified that Lookup acts as a query expression.
2020-11-11 14:29:06 +01:00
Nick Pope
06c5d3fafc
Fixed #32060 -- Added Random database function.
2020-10-02 06:58:03 +02:00
Paweł Zarębski
054ab1e00f
Fixed example of QuerySet.explain() with flags in docs.
2020-09-23 11:47:31 +02:00
Tom Carrick
e387f191f7
Fixed #31777 -- Added support for database collations to Char/TextFields.
...
Thanks Simon Charette and Mariusz Felisiak for reviews.
2020-09-21 18:24:56 +02:00
Mike Lissner
8c0794ba0d
Refs #28939 -- Doc’d Prefetch behavior with multiple DBs.
2020-09-17 14:26:33 +02:00
Mariusz Felisiak
9a0e5052ed
Corrected exception types in QuerySet docs.
2020-09-13 20:09:44 +02:00
Hasan Ramezani
5362e08624
Fixed #31943 -- Fixed recreating QuerySet.values()/values_list() when using a pickled Query.
2020-09-11 07:58:52 +02:00
Joe Jackson
9d5d865fd6
Fixed #31948 -- Added tzinfo parameter to TruncDate() and TruncTime().
2020-09-02 07:42:27 +02:00
Kaustubh
b9be11d442
Fixed #31918 -- Allowed QuerySet.in_bulk() to fetch on a single distinct field.
2020-08-26 09:43:39 +02:00
Tom Carrick
63300f7e68
Fixed #21181 -- Added Collate database function.
...
Thanks Simon Charette for reviews.
2020-08-11 22:21:08 +02:00
Adam Alton
6e9c5ee88f
Removed unnecessary sentence in QuerySet docs.
2020-08-07 08:05:47 +02:00
Alexandr Tatarinov
f4ac167119
Fixed #27719 -- Added QuerySet.alias() to allow creating reusable aliases.
...
QuerySet.alias() allows creating reusable aliases for expressions that
don't need to be selected but are used for filtering, ordering, or as
a part of complex expressions.
Thanks Simon Charette for reviews.
2020-07-31 13:19:33 +02:00
Ramiro Morales
51e536178c
Fixed typo in docs/ref/models/querysets.txt.
2020-07-22 22:53:20 +02:00
Adam Johnson
bc4fea92b2
Doc'd Model.MultipleObjectsReturned docs and improved documentation related with models exceptions.
2020-07-22 14:21:08 +01:00
Adam Johnson
b5f0efa19c
Refs #24763 -- Moved DoesNotExist to Model class docs.
2020-07-22 12:56:21 +02:00
Adam Johnson
e7fa8aff43
Improved ManyToManyField.through docs.
2020-07-17 10:29:24 +02:00
Simon Charette
156a2138db
Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.
2020-07-15 10:58:38 +02:00
Simon Charette
1e38f1191d
Fixed #30446 -- Resolved Value.output_field for stdlib types.
...
This required implementing a limited form of dynamic dispatch to combine
expressions with numerical output. Refs #26355 should eventually provide
a better interface for that.
2020-07-15 10:58:29 +02:00
Simon Charette
ca6c5e5fc2
Fixed #31770 -- Allowed select_for_update(of) on MySQL 8.0.1+.
2020-07-13 10:15:43 +02:00
matt ferrante
7d6916e827
Fixed #29789 -- Added support for nested relations to FilteredRelation.
2020-07-09 20:24:00 +02:00
davidchorpash
779e615e36
Fixed #31573 -- Made QuerySet.update() respect ordering on MariaDB/MySQL.
2020-07-08 11:43:50 +02:00
Tim Park
697e59d5cf
Fixed #31502 -- Documented Model._state.db and Model._state.adding
2020-07-08 10:05:47 +02:00
Steven Pousty
d2c135da4c
Fixed #31743 -- Doc't that managed=False prevents Django from managing tables modifications.
2020-06-26 08:46:01 +02:00
Hannes Ljungberg
7edc6e53a7
Fixed #31702 -- Added support for PostgreSQL opclasses in UniqueConstraint.
2020-06-16 07:19:00 +02:00
Tobias Krönke
69e0d9c553
Fixed #31689 -- Doc'd caveat about using bulk_create()'s ignore_conflicts on MariDB and MySQL.
2020-06-15 12:10:15 +02:00
Hannes Ljungberg
8c7992f658
Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+.
2020-06-04 12:26:22 +02:00
Hasan Ramezani
55556e51fb
Fixed #31650 -- Added note uniqueness of constraints names in docs.
2020-06-04 07:36:12 +02:00
David Smith
dbdc192ca3
Preferred usage of among/while to amongst/whilst.
2020-06-03 21:02:48 +02:00
Ryan Heard
587b179d41
Fixed #31606 -- Allowed using condition with lookups in When() expression.
2020-05-27 07:32:23 +02:00
Manuel Weitzman
a4e6030904
Fixed #30375 -- Added FOR NO KEY UPDATE support to QuerySet.select_for_update() on PostgreSQL.
2020-05-21 10:51:10 +02:00