864 Commits

Author SHA1 Message Date
Mariusz Felisiak
b0d810a77b [2.2.x] Fixed Sphinx warnings on duplicate object descriptions.
Backport of 69e2cd6fed40f3ecf767609b80ad31f288446e48 from master.
2020-06-02 10:47:40 +02:00
Carlton Gibson
7deb87c93e [2.2.x] Fixed #31282 -- Corrected RelatedManager docs for using add/remove/set with PKs.
Backport of 3bbf9a489afc689eff2f4a0b84af196aa1ef51e7 from master
2020-02-18 19:58:59 +01:00
Mariusz Felisiak
6cf3b6f5cf [2.2.x] 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.
Backport of 0107e3d1058f653f66032f7fd3a0bd61e96bf782 from master
2019-12-02 07:58:44 +01:00
Baptiste Mispelon
019a1b9274 [2.2.x] Fixed #31029 -- Used more specific links to RFCs.
Backport of ff1b19da6761217ed1b14cc7e94c6438903565d8 from master
2019-11-28 08:00:49 +01:00
Farhaan Bukhsh
f55f89f908 [2.2.x] Fixed #30958 -- Used a clearer example in the Cast() docs.
Backport of 4cb15450adac4003ed98f4adcb1710c95fd2b919 from master
2019-11-11 10:10:51 +01:00
kola-er
22466f91dc [2.2.x] Fixed #30928 -- Clarified MySQL/MariaDB support of QuerySet.select_for_update() options.
Thanks Par Andersson for reporting the issue.

Backport of d94d7b113c21d7a0fd802fadb1adbbec8155e880 from master
2019-11-05 14:56:45 +01:00
Antonio Dudarev
43bc59ceb6 [2.2.x] Refs #13724 -- Corrected QuerySet signature in docs.
Backport of 6c23b43655f3710cfb1ecc57236405d11a544247 from master
2019-10-22 14:24:46 +02:00
David Vaz
a6972e8854 [2.2.x] Fixed #30216 -- Doc'd that BooleanField is no longer blank=True in Django 2.1. 2019-09-27 13:00:32 +02:00
Mariusz Felisiak
ae2dee6ecf [2.2.x] Refs #29915 -- Doc'd limitation of using pattern lookups with UUIDField on PostgreSQL.
Backport of 343afa788080fb874bcd10eab1a1a2fede98c526 from master
2019-09-23 08:47:01 +02:00
Claude Paroz
f452d4232e [2.2.x] Fixed #29823 -- Doc'd limitation of DecimalField on SQLite.
Backport of b8dff52f440adfb78b40e19ee8bff45373ca2501 from master
2019-09-14 17:25:33 +02:00
Andrew
16e5e8ff5a [2.2.x] Fixed #30733 -- Doc'd that datetime lookups require time zone definitions in the database.
Note was missing for date, year, iso_year, week, time, hour, minute,
and second lookups.

Backport of 29adcd215f80383f00d9f837311e857142319722 from master
2019-08-28 09:07:35 +02:00
Matthew Schinckel
6c17b86590 [2.2.x] Doc'd for_save argument of Expression.resolve_expression().
Backport of dba749917f73ce517448a42fed38dd61382e92a7 from master
2019-08-27 17:13:35 +02:00
Carlton Gibson
c5cbb797d7 [2.2.x] Fixed #30688 -- Clarified base_manager_name docs.
Backport of 514efa3129792ec2abb2444f3e7aeb3f21a38386 from master
2019-08-09 10:10:15 +02:00
Mariusz Felisiak
0088e59292 [2.2.x] Refs #30547 -- Clarified that partial UniqueConstraints don't affect model validation.
Backport of 230d75f59c43b9731465c4ec92ad714e301637b8 from master
2019-07-18 12:56:52 +02:00
Alexey Opalev
f3b036593f [2.2.x] Fixed typo in docs/ref/models/indexes.txt.
Backport of 2f91e7832fd2e51dfb75f6027b673a943e736ef0 from master
2019-06-24 09:01:12 +02:00
Claude Paroz
3b2701e4f2 [2.2.x] Removed unneeded non-breaking spaces added in 00169bc36
Backport of 8590726a5dd3087d40b549580703cd8c74f3d7b1 from master.
2019-06-22 10:28:26 +02:00
Swat009
c3a0f76d11 [2.2.x] Fixed #30547 -- Doc'd how Meta.constraints affect model validation.
Backport of 00169bc36156d4a32546229bf39de91213709eaf from master
2019-06-20 10:45:20 +02:00
Vyacheslav Ver
36766e1a28 [2.2.x] Fixed #30486 -- Fixed the default value of Aggregate.distinct and updated example of custom aggregate functions.
Backport of 76b3fc5c8d8dffb441aaa08f75833888be2107af from master
2019-06-11 12:02:02 +02:00
Caio Ariede
d6d65c1e87 [2.2.x] Fixed #30505 -- Doc'd how changes in the order of Field.choices affect migrations.
Backport of 5248abe9b0425c1fc989c60a55860cdb4d135bcf from master
2019-06-04 14:57:08 +02:00
Brad Solomon
0f0d1cd772 [2.2.x] Fixed #30491 -- Clarified when save() on object with pk executes INSERT.
Backport of 67b6cb7723b2765cb776bd59d5603e3e63eefc2e from master
2019-05-28 11:28:28 +02:00
GwynBleidD
83605a17f0 [2.2.x] Refs #30062 -- Corrected UniqueConstraint signature in docs.
Backport of 5402061c80aa2ede08a7c6b3ff204646c5059cf7 from master
2019-05-20 10:54:19 +02:00
Jon Dufresne
ed221f7c97 [2.2.x] Changed docs to link to Python's description of iterable.
Backport of e86cc14bd36734d81c4e490a2453778e33b95a45 from master
2019-05-17 17:27:57 +02:00
Alex
4ef96cce6a [2.2.x] Fixed #30199 -- Adjusted QuerySet.get_or_create() docs to highlight atomicity warning.
Backport of 1686dce06c1f3587e90ea98816eddaa965fd9f45 from master
2019-05-17 12:25:12 +02:00
Jon Dufresne
08c8838727 [2.2.x] Changed tuple choices to list in docs.
Backport of 97d3321e89c8d4434927bdbc308db1ccffa99d3b from master
2019-05-15 14:41:01 +02:00
Tobias Kunze
769f87fd24 [2.2.x] Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the field the relation points to.
Backport of a44a21a22f20c1a710670676fcca798dd6bb5ac0 from master
2019-05-07 12:58:55 +02:00
Mariusz Felisiak
f24cf51661 [2.2.x] Fixed #30362 -- Noted partial indexes and constraints restrictions with abstract base classes.
Thanks Carlton Gibson for the review.

Backport of 5df3301aab9e1d1c386799263bef5cf013985c83 from master
2019-04-25 07:37:34 +02:00
Mariusz Felisiak
158cfebe87 [2.2.x] Fixed UniqueConstraint example in ref/models/constraints.txt.
Backport of f8f0f92ed9f73a025de599bd1a4965f2cc2ebbba from master
2019-04-25 07:37:21 +02:00
Luke Plant
46416554f3 [2.2.x] Changed tuple Mate.unique_together/permissions to lists in docs.
Backport of 0c916255eb4d94e06e123fafec93efdba45b1259 from master
2019-04-24 10:33:05 +02:00
Gary Donovan
0ba78c3989 [2.2.x] Fixed typo in docs/ref/models/instances.txt.
Backport of 516d858e7a3d01443cdc4e1eb4532b9d910f5e2b from master
2019-04-16 08:27:05 +02:00
sage
86de106864 [2.2.x] Fixed #30326 -- Doc'd how to avoid persistence of F() assignment.
Backport of bfae195b0a2c8dae755610a7e23add5c6bc37b5e from master
2019-04-15 09:13:56 +02:00
Nick Pope
5237da3416 [2.2.x] Removed unnecessary /static from links to PostgreSQL docs.
Backport of 198a2a9381a415f76c3170753270f5087ce4475a from master.
2019-03-29 21:50:28 -04:00
Paul Wayper
a48c0180f5 [2.2.x] Fixed #30253 -- Doc'd how to order nulls in QuerySet.order_by().
Backport of 1025e764291167f2f34a4d55bd3d043836e74250 from master.
2019-03-18 11:11:55 -04:00
Mariusz Felisiak
62f28f37bf
[2.2.x] Fixed documentation of database representation for ManyToManyField.
Backport of b0799f5d86b6c0ccb1dcba6e0d2eee336f7f5928 from master
2019-02-25 20:08:11 +01:00
Mariusz Felisiak
0aff35459d
[2.2.x] Updated Oracle docs links to Oracle 18c.
Backport of 759a9b710c0e5a6009cfba406ff562919fa70ef0 from master
2019-02-07 10:03:11 +01:00
Sergey Fedoseev
6187519236 [2.2.x] Corrected output of Prefetch.to_attr example.
Backport of ba7a420012799b26ec9e969d0276d2ccee93c1f5 from master.
2019-01-31 09:09:34 -05:00
Day Barr
7185ea6902 [2.2.x] Fixed typo in QuerySet.bulk_update() documentation.
Backport of 51fa59f0b39b24d4a589e01a26e539c3134a6c42 from master.
2019-01-17 12:32:22 -05:00
Collin Anderson
769355c765 Fixed #9475 -- Allowed RelatedManager.add(), create(), etc. for m2m with a through model. 2019-01-15 11:12:17 -05:00
Nick Pope
6d4efa8e6a Refs #28643 -- Changed Variance() to use NumericOutputFieldMixin.
Keeps precision instead of forcing DecimalField to FloatField.
2019-01-14 14:39:46 -05:00
Nick Pope
e85afa5943 Refs #28643 -- Changed StdDev() to use NumericOutputFieldMixin.
Keeps precision instead of forcing DecimalField to FloatField.
2019-01-14 14:38:00 -05:00
Nick Pope
c690afb873 Refs #28643 -- Changed Avg() to use NumericOutputFieldMixin.
Keeps precision instead of forcing DecimalField to FloatField.
2019-01-14 14:35:41 -05:00
Nick Pope
abf8e390a4 Refs #28643 -- Added Reverse database function.
Thanks Mariusz Felisiak for Oracle advice and review.
2019-01-12 10:45:48 -05:00
Paveł Tyślacki
b69f8eb04c Fixed #30062 -- Added support for unique conditional constraints. 2019-01-12 09:50:20 -05:00
Tim Graham
cf1fe22009 Fixed typos in docs/ref/models/constraints.txt. 2019-01-10 18:52:42 -05:00
Mads Jensen
4b9d72210f Refs #28643 -- Added NullIf database function.
Thanks Nick Pope, Mariusz Felisiak, and Tim Graham for reviews.
2019-01-10 12:10:12 -05:00
Hasan Ramezani
52d06d3041 Fixed #29968 -- Doc'd that QuerySet.bulk_update() doesn't check for duplicates. 2019-01-09 17:54:46 -05:00
Simon Charette
bc05547cd8 Fixed #28658 -- Added DISTINCT handling to the Aggregate class. 2019-01-09 17:52:36 -05:00
Paveł Tyślacki
bdf3863bdd Fixed #30063 -- Doc'd that Meta.unique_together may be deprecated in favor of Meta.constraints. 2018-12-29 20:01:29 -05:00
Nick Pope
83677faf86 Fixed #30056 -- Added SQLite support for StdDev and Variance functions. 2018-12-24 11:14:58 -05:00
Nick Pope
e626a3f993 Renamed Sqlite and Sqlite3 references to SQLite. 2018-12-22 18:52:54 -05:00
Tim Graham
926fa7116f Fixed #29317 -- Doc'd filter argument in contrib.postgres aggregates. 2018-11-27 11:20:23 -05:00