11440 Commits

Author SHA1 Message Date
Mariusz Felisiak
eb94e7ad6b [3.0.x] Added stub release notes for 3.0.3.
Backport of 69331bb851c34f05bc77e9fc24020fe6908b9cd5 from master
2020-01-02 08:41:58 +01:00
Mariusz Felisiak
5738364fd6 [3.0.x] Added release date for 3.0.2.
Backport of 434a81d320d1352b7c5db49800a99d0b285eefed from master
2020-01-02 07:57:28 +01:00
Mariusz Felisiak
e2b72f85c2 [3.0.x] Fixed typo in ref/forms/widgets.txt.
Backport of ef1286e3e3e2ea1a854b0169da2cefed0241903e from master
2020-01-02 07:47:11 +01:00
Gabriel Augendre
8e432718b8 [3.0.x] Fixed #30780 -- Improved visibility of Getting Help FAQ in tutorials.
Backport of 307c63f9a7c90a21368d8361cd76f48f372413ab from master
2019-12-31 09:26:13 +01:00
Gabriel Augendre
00b436adf4 [3.0.x] Refs #30780 -- Moved "First steps" section to the top of index page.
Backport of c07b4bce2c1d05308144aec86422d4cd2b45d818 from master
2019-12-31 09:26:07 +01:00
Mads Jensen
222b56474d [3.0.x] Added guidelines for assertIs() usage.
Backport of ea44d86ed43349db25b6b2d8e4d4af2d5c618cf9 from master
2019-12-30 13:04:07 +01:00
Simon Charette
a04e6fb355 [3.0.x] Refs #29260 -- Doc'd Model.save() behavior change in Django 3.0.
Backport of 9e14bc2135cb806b66374bac791c79344fff4ded from master
2019-12-30 08:30:49 +01:00
Simon Charette
7db4ab8439 [3.0.x] Fixed #31071 -- Disabled insert optimization for primary keys with defaults when loading fixtures.
Model.save_base() is called directly when loading fixtures and assumes
existing rows will be updated. Branching of "raw" allows to maintain
the optimization introduced in #29260 while supporting this edge case.

Regression in 85458e94e38c20e57939947ee515a1a53689659f.

Thanks Reupen Shah for the report.

Backport of 5779cc938a34eb96815c7a40ded2c8f6c8087c58 from master
2019-12-30 08:30:44 +01:00
Mariusz Felisiak
0f8041abd5 [3.0.x] Fixed #31106 -- Fixed migrations crash on PostgreSQL 10+ when adding FK constraints inline and changing data.
This allows adding foreign key constraints inline and changing data in
the same migration on PostgreSQL 10+.

Regression in 738faf9da2a5cd03148a36375db80746c99c9623.

Thanks Janne Rönkkö for the report and Simon Charette for the
implementation idea and review.
Backport of 22ce5d0031bd795ade081394043833e82046016c from master
2019-12-23 23:30:30 +01:00
Jon Dufresne
eb40426259 [3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f7717149573df9607b848297a520881d3 from master
2019-12-23 14:48:16 +01:00
Simon Charette
7b065c41e4 [3.0.x] Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists().
Clearing the SELECT clause in Query.has_results was orphaning GROUP BY
references to it.

Thanks Thierry Bastian for the report and Baptiste Mispelon for the
bisect.

Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Backport of 720de4d0441fcfdb543051389c70efbe66ed962a from master
2019-12-23 09:24:37 +01:00
Taoup
b1a309f6f0 [3.0.x] Fixed #31110 -- Fixed typo in docs/ref/models/expressions.txt.
Backport of cebd41e41603c3ca77c5b29d6cd20c1bff43827f from master
2019-12-21 20:34:30 +01:00
Katie McLaughlin
407eeff9de [3.0.x] Refs #30767 -- Improved deployment documentation.
Backport of abeb4599af5ea7a384e18ec6201a95c9e419b44a from master
2019-12-20 11:34:00 +01:00
Garry Polley
77722711df [3.0.x] Added example of assertNumQueries() with "using" kwarg in testing topics docs.
Backport of 0b698eaea611d3bafa86d6d81d9203b482600ccb from master
2019-12-20 08:44:07 +01:00
Garry Polley
d2100340f3 [3.0.x] Removed outdated information from contrib.sites docs.
Backport of d216e67b0cf7b161c8f532ca742e87eb8cf98f4b from master
2019-12-20 08:44:01 +01:00
Nick Pope
08b426aedb [3.0.x] Refs #28954 -- Remove remaining Jython documentation.
There is still no further progress on Jython 3 since support for Jython
was stripped in Django 2.0. The developers experimenting with Jython 3
have stated that they would need to start from scratch, so it doesn't
look as though it will materialize for years to come.

Python 2 and Django 1.11, the last version to support Python 2.7, will
both be end-of-life before Django 3.1 is released. We should no longer
instruct users to use an unsupported version of Django.

Backport of d8b6a76bc745b21c6cf2b29c220a91bcae7fd3d7 from master
2019-12-19 16:44:39 +01:00
Simon Charette
fd9050589f [3.0.x] Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on aggregations.
Thanks Johannes Hoppe for the report.

Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 5a4d7285bd10bd40d9f7e574a7c421eb21094858 from master
2019-12-19 11:10:33 +01:00
Hasan Ramezani
fb260ad777 [3.0.x] Corrected some typos in documentation.
Backport of 70d95682b1be6a85abdeaea0205a897f7530f8bc from master
2019-12-18 11:37:32 +01:00
Mariusz Felisiak
efd9302b14 [3.0.x] Added stub release notes for 3.0.2.
Backport of 50a69efb2e73ab8b3ef26042d4579e8ade950c37 from master
2019-12-18 10:52:37 +01:00
Adam Johnson
a334ae5d1e [3.0.x] Updated Pytest example in upgrade documentation.
Pytest changed their recommended entrypoint to 'pytest' in version 3.0.0 in 2016 : https://docs.pytest.org/en/latest/changelog.html#id1009. Also link the name since this is the only reference in the Django documentation at current.
Backport of ef3baf966d73c71480198d6194fa277ef7daa87d from master
2019-12-18 10:43:36 +01:00
Mariusz Felisiak
f21c132cd4 [3.0.x] Added CVE-2019-19844 to the security archive.
Backport of 5a2b9f0b546222e928df91310acb9cf363a6c920 from master
2019-12-18 10:38:37 +01:00
Simon Charette
302a4ff1e8 [3.0.x] Fixed CVE-2019-19844 -- Used verified user email for password reset requests.
Backport of 5b1fbcef7a8bec991ebe7b2a18b5d5a95d72cb70 from master.

Co-Authored-By: Florian Apolloner <florian@apolloner.eu>
2019-12-18 09:14:44 +01:00
Osaetin Daniel
33d2cda672 [3.0.x] Doc'd HttpResponse.set_cookie()'s secure argument.
Backport of 14e690ae5a6d4ddeb1ac021f78e2e6e333214ef8 from master
2019-12-13 11:06:47 +01:00
Osaetin Daniel
3ab7de0182 [3.0.x] Refs #6657 -- Corrected HttpResponse.set_cookie()/set_signed_cookie() signatures in docs.
Backport of 15c5875e693cc972c996a921560624c355ab8fdd from master
2019-12-13 11:06:33 +01:00
Hasan Ramezani
6cb30414bc [3.0.x] Fixed #31069, Refs #26431 -- Doc'd RegexPattern behavior change in passing optional named groups in Django 3.0.
Backport of 9736137cdc4b7528a0aca17415dc9798660eed81 from master
2019-12-12 14:49:13 +01:00
Hasan Ramezani
79c92fc7b6 [3.0.x] Fixed typos in 3.0 release notes and docs/ref/request-response.txt.
Backport of 52018e1615edfafcb5170ba6b473132fe2f9a534 from master
2019-12-12 10:19:38 +01:00
Mariusz Felisiak
f4baf2fdf6 [3.0.x] Refs #31073 -- Added release notes for 02eff7ef60466da108b1a33f1e4dc01eec45c99d.
Backport of ec12c37384798093e359971c8980fe0c68d555bc from master
2019-12-11 10:08:32 +01:00
Ali Mirlou
314cb3a976 [3.0.x] Fixed typo in docs/releases/3.0.1.txt.
Backport of 663bb435deb1d6c407818dacfdcddd458e9b60c6 from master
2019-12-09 07:58:33 +01:00
Alex Aktsipetrov
8af07712df [3.0.x] Fixed #31060 -- Reallowed window expressions to be used in conditions outside of queryset filters.
Regression in 4edad1ddf6203326e0be4bdb105beecb0fe454c4.

Thanks utapyngo for the report.

Backport of bf12273db4e53779546e2ac7b65c0ce8e3c8a640 from master.
2019-12-06 15:28:23 +01:00
Mariusz Felisiak
e986e49e66 [3.0.x] Fixed #31061 -- Ignored positional args in django.urls.resolve() when all optional named parameters are missing.
Regression in 76b993a117b61c41584e95149a67d8a1e9f49dd1.

Thanks Claude Paroz for the report and Carlton Gibson for reviews.
Backport of 82a88d2f48e13ef5d472741d5ed1c183230cfe4c from master
2019-12-06 09:33:45 +01:00
Mariusz Felisiak
6ede5a3cb7 [3.0.x] Fixed #31062 -- Doc'd asgi.py in tutorials and project templates.
Backport of 3930ec1bf275d17f1c36cd38b38114177b1d1565 from master
2019-12-05 08:40:19 +01:00
jsals1
7263c7710c [3.0.x] Fixed typo in docs/releases/3.0.txt.
Backport of 1f62c008d1c983b4e5450a8764605aa6246e1cb4 from master
2019-12-05 07:55:56 +01:00
Felipe Lee
87483757c8 [3.0.x] Fixed #20456 -- Added example of directly testing CBVs in topics docs.
Backport of a2e96f7969059fb4e621a1cd591fbdd0d4deae2e from master
2019-12-04 16:41:46 +01:00
Uttam Kini
84936ac2c5 [3.0.x] Fixed #31024 -- Clarified {% firstof %} tag's handling of arguments.
Backport of d646e3d14fa04b5081476b84f4500c8651c167c2 from master
2019-12-04 14:36:43 +01:00
Mariusz Felisiak
cc64b1d8f3 [3.0.x] Fixed #31059 -- Fixed typo in docs/releases/3.0.txt.
Backport of 95ae1a9f8caf9c63c14c1a7c3e15594d3181b3ca from master
2019-12-04 09:25:00 +01:00
Claude Paroz
e8f126aae1 [3.0.x] Removed leftover word in CBV mixins docs.
Backport of d83b585e5cc2b6dec49982670b86d6b4dd339342 from master
2019-12-04 09:15:35 +01:00
Hasan Ramezani
c8c0c0def7 [3.0.x] Fixed typo in internals/contributing/writing-documentation.txt.
Backport of b1d39131ebb9f20bea182cb63a8a580fc4b3c00d from master
2019-12-03 21:04:23 +01:00
Andrew Godwin
9243435b5e [3.0.x] Fixed #31056 -- Allowed disabling async-unsafe check with an environment variable.
Backport of c90ab30fa1305481024b9c3c50b5a6ed6cd9a2f5 from master
2019-12-03 17:50:24 +01:00
Andrew Godwin
45de0c299b [3.0.x] Refs #30451 -- Doc'd asynchronous support and async-safety.
Backport of 635a3f8e6e0303e8a87586ef6be4ab0cc01d7c0d from master
2019-12-03 17:50:18 +01:00
Claude Paroz
830a5bcf15 [stable/3.0.x] Fixed typo in topics docs
Backport of b92d101bd868aa460d16d1196a798df7e5c1ea33 from master.
2019-12-03 16:51:45 +01:00
Mariusz Felisiak
7ec5962638 [3.0.x] Added stub release notes for 3.0.1.
Backport of 908c67e719a54b8b612cb7df732126f42350f3fa from master
2019-12-02 21:47:49 +01:00
Ryan Cheley
cd7f48e85e [3.0.x] Fixed #31006 -- Doc'd backslash escaping in date/time template filters.
Backport of a1f14ee3e5a2160c2eef1dad58a1da11be4b1531 from master
2019-12-02 13:54:37 +01:00
Carlton Gibson
f3da0836ff [3.0.x] Finalized release notes for Django 3.0.
Backport of 3b347a8a00273e9cc2fd9d4a5c61569c08398769 from master
2019-12-02 11:55:06 +01:00
Carlton Gibson
d13ba5502d [3.0.x] Added CVE-2019-19118 to the security archive.
Backport of 900ea762e5d1342e84a645483d05b90e6d908f2d from master
2019-12-02 11:42:52 +01:00
Carlton Gibson
5fca551f12 [3.0.x] Removed issue reporter name from 2.1.15 and 2.2.8 release notes.
Backport of 368b8d20aaa16f0ef763759a0a87d986ef460584 from master
2019-12-02 09:48:14 +01:00
Carlton Gibson
46491e8095 [3.0.x] Added release dates for 2.1.15, 2.2.8 and 3.0.
Backport of e31d1852671866f6e52d55f9b7925ecad711fcf5 from master
2019-12-02 09:11:31 +01:00
Carlton Gibson
092cd66cf3 Fixed CVE-2019-19118 -- Required edit permissions on parent model for editable inlines in admin.
Thank you to Shen Ying for reporting this issue.
2019-12-02 08:57:44 +01:00
Mariusz Felisiak
db0cc4ae96 [3.0.x] Refs #30953 -- Added 2.1.15 release note for 0107e3d1058f653f66032f7fd3a0bd61e96bf782.
Backport of 39e39d0ac1b720e7460ec8ccf45926c78edb2047 from master
2019-12-02 08:12:10 +01:00
Mariusz Felisiak
f4ed6800bd [3.0.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:04 +01:00
Mariusz Felisiak
ca9144a4a8 [3.0.x] Fixed #31021 -- Fixed proxy model permissions data migration crash with a multiple databases setup.
Regression in 98296f86b340c8c9c968375d59f1d3a3479e60c2.

Backport of e8fcdaad5c428878d0a5d6ba820d957013f75595 from master
2019-11-29 11:10:36 +01:00