Commit Graph

27554 Commits

Author SHA1 Message Date
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 738faf9da2.

Thanks Janne Rönkkö for the report and Simon Charette for the
implementation idea and review.
Backport of 22ce5d0031 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 5e00bd1f77 from master
2019-12-23 14:48:16 +01:00
Mariusz Felisiak 1e45b06cfd [3.0.x] Refs #31115 -- Added test for nested subquery that references related fields.
Thanks Dmitriy Gunchenko for the report and Simon Charette for the
analysis and tests.

Regression in 5a4d7285bd.

Fixed in 5a4d7285bd.
Backport of 45bcc6feac from master
2019-12-23 12:18:52 +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 fb3f034f1c.

Backport of 720de4d044 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 cebd41e416 from master
2019-12-21 20:34:30 +01:00
Katie McLaughlin 407eeff9de [3.0.x] Refs #30767 -- Improved deployment documentation.
Backport of abeb4599af 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 0b698eaea6 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 d216e67b0c 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 d8b6a76bc7 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 fb3f034f1c.

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

Backport of 5a4d7285bd from master
2019-12-19 11:10:33 +01:00
Hasan Ramezani fb260ad777 [3.0.x] Corrected some typos in documentation.
Backport of 70d95682b1 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 50a69efb2e 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 ef3baf966d 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 5a2b9f0b54 from master
2019-12-18 10:38:37 +01:00
Mariusz Felisiak afaf5b1f58 [3.0.x] Post-release version bump. 2019-12-18 09:27:32 +01:00
Mariusz Felisiak 03d64f1d9c [3.0.x] Bumped version for 3.0.1 release. 2019-12-18 09:21:54 +01:00
Simon Charette 302a4ff1e8 [3.0.x] Fixed CVE-2019-19844 -- Used verified user email for password reset requests.
Backport of 5b1fbcef7a 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 14e690ae5a 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 15c5875e69 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 9736137cdc 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 52018e1615 from master
2019-12-12 10:19:38 +01:00
Mariusz Felisiak f4baf2fdf6 [3.0.x] Refs #31073 -- Added release notes for 02eff7ef60.
Backport of ec12c37384 from master
2019-12-11 10:08:32 +01:00
Peter Andersen 74e1454113 [3.0.x] Fixed #31073 -- Prevented CheckboxInput.get_context() from mutating attrs.
Backport of 02eff7ef60 from master
2019-12-11 09:37:34 +01:00
Ali Mirlou 314cb3a976 [3.0.x] Fixed typo in docs/releases/3.0.1.txt.
Backport of 663bb435de 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 4edad1ddf6.

Thanks utapyngo for the report.

Backport of bf12273db4 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 76b993a117.

Thanks Claude Paroz for the report and Carlton Gibson for reviews.
Backport of 82a88d2f48 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 3930ec1bf2 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 1f62c008d1 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 a2e96f7969 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 d646e3d14f 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 95ae1a9f8c 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 d83b585e5c 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 b1d39131eb 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 c90ab30fa1 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 635a3f8e6e from master
2019-12-03 17:50:18 +01:00
Claude Paroz 830a5bcf15 [stable/3.0.x] Fixed typo in topics docs
Backport of b92d101bd8 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 908c67e719 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 a1f14ee3e5 from master
2019-12-02 13:54:37 +01:00
Carlton Gibson 3c370c1562 [3.0.x] Post-release version bump. 2019-12-02 12:06:12 +01:00
Carlton Gibson d36413a2eb [3.0.x] Bumped version for 3.0 release. 2019-12-02 12:00:37 +01:00
Carlton Gibson f3da0836ff [3.0.x] Finalized release notes for Django 3.0.
Backport of 3b347a8a00 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 900ea762e5 from master
2019-12-02 11:42:52 +01:00
Claude Paroz 4afa0e5d2a [3.0.x] Updated contrib translations from Transifex 2019-12-02 09:49:04 +01:00
Claude Paroz 71ec95345c [3.0.x] Updated core translations from Transifex 2019-12-02 09:49:03 +01:00
Carlton Gibson 5fca551f12 [3.0.x] Removed issue reporter name from 2.1.15 and 2.2.8 release notes.
Backport of 368b8d20aa 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 e31d185267 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 0107e3d105.
Backport of 39e39d0ac1 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 0107e3d105 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 98296f86b3.

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