Nick Frazier
fdc1c6435c
[3.2.x] Fixed #33198 -- Corrected BinaryField.max_length docs.
...
Backport of 0d4e575c96d408e0efb4dfd0cbfc864219776950 from main
2021-10-18 08:24:36 +02:00
David Sanders
a7be74d017
[3.2.x] Clarified type of Window()'s partition_by and order_by arguments.
...
Backport of ecf76cc1fb0ca7b02744fb63717cb1ac5f643916 from main
2021-09-10 12:27:55 +02:00
Can Sarıgöl
69009f4952
[3.2.x] Fixed #33046 -- Added note about using length of cached result by QuerySet.count().
...
Backport of 7ea86076fc1128d43b47f4826cb25eb5ebb19f19 from main
2021-08-26 09:05:35 +02:00
Abhyudai
55daaa0c79
[3.2.x] Made minor edits to QuerySet.update_or_create() docs.
...
Backport of 85d47a58bf7dceced6a3e29a0715827b7a9d7d29 from main
2021-07-29 06:51:46 +02:00
abhiabhi94
bdd4cbe84a
[3.2.x] Fixed #32957 -- Improved visibility of arguments sections in Model.save() docs.
...
Backport of f876c7d08e75d719df5cd34b97cac63fdaae3fcc from main
2021-07-26 08:50:40 +02:00
Claude Paroz
1d53d2502d
[3.2.x] Documented in_bulk behavior with nonexistent id_list items.
...
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Backport of 7309393c3a7dea7a34a1446e102df7432c4e7357 from main
2021-07-07 10:15:51 +02:00
Girish Sontakke
65b680a99a
[3.2.x] Fixed #32755 -- Corrected Model.get_absolute_url() example in docs.
...
Backport of 27d4573d35935bff83c28bfd68a2ce5a7a6c600a from main
2021-05-18 11:31:03 +02:00
Nick Pope
fab710d3ff
[3.2.x] Fixed a typo in docs/ref/models/fields.txt.
...
datetime.date.utcnow() doesn't exist, should be .today().
Backport of 88b3982af396a7c2eca0db9c52dfa9830045cc19 from main
2021-05-12 12:12:10 +02:00
Mariusz Felisiak
208e72276a
[3.2.x] Fixed #32645 -- Fixed QuerySet.update() crash when ordered by joined fields on MySQL/MariaDB.
...
Thanks Matt Westcott for the report.
Regression in 779e615e362108862f1681f965ee9e4f1d0ae6d2.
Backport of ca9872905559026af82000e46cde6f7dedc897b6 from main
2021-04-14 21:13:27 +02:00
Claude Paroz
3eb72ad30f
[3.2.x] Refs #31003 -- Moved note about return value of QuerySet.bulk_create() to the first paragraph.
...
Backport of cac9ec73db35a6d38d33f271f4724da486c60e9f from main.
2021-03-25 20:35:40 +01:00
Simon Willison
601ceddf79
[3.2.x] Doc'd that RawSQL can be used with __in.
...
Backport of e53159747c53ca8db6c338998493fd8697d38fac from main
2021-03-25 10:33:16 +01:00
Mariusz Felisiak
49970b5e4d
[3.2.x] Refs #32483 -- Doc'd caveat about using JSONField key transforms to booleans with QuerySet.values()/values_list() on SQLite.
...
Backport of c6b07627fcb5d1c8d2082714ef5adb63bee6cf4c from master
2021-03-04 11:31:00 +01:00
Timothy McCurrach
e95a60bb64
[3.2.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
...
Backport of 241da3f06ee0c6f436341cda5890b221ac453e3b from master
2021-01-28 08:07:14 +01:00
Jack
c708837a69
[3.2.x] Refs #32372 -- Updated manager name in related objects reference docs.
...
Follow up to 725c549ae7a34d83447201da7190f8d71c7fc2fc.
Backport of 2b4b6c8af0aae8785bc1347cf1be2e8e70fd5ff3 from master
2021-01-22 20:19:27 +01:00
Jack Aitken
59c63c7f6b
[3.2.x] Fixed #32372 -- Made examples in related objects reference docs consistent.
...
Backport of 725c549ae7a34d83447201da7190f8d71c7fc2fc from master
2021-01-22 06:53:13 +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 51297a92324976a704279b567ec4f80bb92d7b60.
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 84c1826ded17b2d74f66717fb745fc36e37949fd.
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