1
0
mirror of https://github.com/django/django.git synced 2025-07-19 17:19:12 +00:00

3457 Commits

Author SHA1 Message Date
Carlton Gibson
d569a8fdde [3.0.x] Added release dates for 2.2.12 and 3.0.5.
Backport of b56243b77f6ae3125bd1a3f24163b28a13a30c5f from master
2020-04-01 09:17:38 +02:00
Hasan Ramezani
72652bcb1b [3.0.x] Fixed #31377 -- Disabled grouping by aliases on QuerySet.values()/values_list() when they collide with field names.
Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Thanks Holovashchenko Vadym for the report.

Backport of 10866a10fe9f0ad3ffdf6f93823aaf4716e6f27c from master
2020-03-25 09:49:51 +01:00
Claude Paroz
d9f1792c76 [3.0.x] Fixed #30439 -- Added support for different plural forms for a language.
Thanks to Michal Čihař for review.
Backport of e3e48b00127c09eafe6439d980a82fc5c591b673 from master
2020-03-10 15:57:36 +01:00
Carlton Gibson
525274f79b [3.0.x] Added stub release notes for 2.2.12.
Backport of a4200e958d1da46465d7d684674a1711bc9f65e0 from master
2020-03-10 12:03:05 +01:00
Mariusz Felisiak
91d97406da [3.0.x] Added stub release notes for 3.0.5.
Backport of 1b3a900a6919f9ffcfe22fae738e49b71e798ee0 from master
2020-03-04 10:57:08 +01:00
Mariusz Felisiak
88cfa212db [3.0.x] Fixed typo in docs/releases/1.11.29.txt.
Backport of 43f8ba1c7c0a264b67224c62b48fcd0dfdaddec3 from master
2020-03-04 10:48:59 +01:00
Mariusz Felisiak
8e196d9430 [3.0.x] Added CVE-2020-9402 to security archive.
Backport of f37f9a0bf061fd0dfe4e45adb39157c3307ec8e2 from master
2020-03-04 10:09:32 +01:00
Mariusz Felisiak
26a5cf8345 [3.0.x] Fixed CVE-2020-9402 -- Properly escaped tolerance parameter in GIS functions and aggregates on Oracle.
Thanks to Norbert Szetei for the report.
2020-03-04 09:16:03 +01:00
Mariusz Felisiak
c5cfaad2f1 [3.0.x] Fixed #31150 -- Included subqueries that reference related fields in GROUP BY clauses.
Thanks Johannes Hoppe for the report.

Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Co-authored-by: Simon Charette <charette.s@gmail.com>

Backport of 7b8fa1653fde578ab3a496d9974ab1d4261b8b26 from master
2020-03-03 11:26:36 +01:00
Simon Charette
16cacdcb3f [3.0.x] Fixed #31312 -- Properly ordered temporal subtraction params on MySQL.
Regression in 9bcbcd599abac91ea853b2fe10b784ba32df043e.

Thanks rick2ricks for the report.

Backport of 41ebe60728a15aa273f4d70de92f5246a89c3d4e from master
2020-02-27 09:20:30 +01:00
Adam Johnson
80e6639e22 [3.0.x] Fixed #31182 -- Adjusted release notes for ASGI support.
Backport of a6b3938afc0204093b5356ade2be30b461a698c5 from master
2020-02-20 15:06:37 +01:00
Mariusz Felisiak
2448b3182c [3.0.x] Fixed #31271 -- Preserved ordering when unifying query parameters on Oracle.
This caused misplacing parameters in logged SQL queries.

Regression in 79065b55a70cd220820a260a1c54851b7be0615a.

Thanks Hans Aarne Liblik for the report.
Backport of 2a038521c4eabdc5f6d5026d3dd6d22868e329cd from master
2020-02-18 11:46:01 +01:00
Abhijeet Viswa
8faaaf4e71 [3.0.x] Fixed #31246 -- Fixed locking models in QuerySet.select_for_update(of=()) for related fields and parent link fields with multi-table inheritance.
Partly regression in 0107e3d1058f653f66032f7fd3a0bd61e96bf782.

Backport of 1712a76b9dfda1ef220395e62ea87079da8c9f6c from master
2020-02-11 21:36:05 +01:00
Florian Apolloner
4e8d6a1baf [3.0.x] Fixed #31240 -- Properly closed FileResponse when wsgi.file_wrapper is used.
Thanks to Oskar Persson for the report.

Backport of 41a3b3d18647b258331104520e76f977406c590d from master
2020-02-11 20:40:24 +01:00
Jon Dufresne
7540b7eb31 [3.0.x] Fixed #31253 -- Fixed data loss possibility when using caching from async code.
Case missed in a415ce70bef6d91036b00dd2c8544aed7aeeaaed.

Backport of e3f6e18513224c8ad081e5a19da641f49b0b43da from master
2020-02-11 10:12:53 +01:00
Mariusz Felisiak
dc0dfd1dac [3.0.x] Added stub release notes for 2.2.11.
Backport of 7e8339748cc199b4a13513891d9ac4f1e4794588 from master
2020-02-10 08:24:00 +01:00
Mariusz Felisiak
5aaec00606 [3.0.x] Added "Bugfixes" section to release notes for 3.0.4.
Backport of 932bd794b29c24536b6277b61175bd11ca9be234 from master
2020-02-10 08:15:40 +01:00
Adam Johnson
9b36348665 [3.0.x] Improved grammar in 3.0 release notes for SECURE_CONTENT_TYPE_NOSNIFF change.
Backport of de1924e0e7499535f05298c46d9983fd1640d4b4 from master
2020-02-05 12:46:42 +01:00
Carlton Gibson
8aaa7a2960 [3.0.x] Added stub release notes for 3.0.4.
Backport of 273918c25b203d32a7922bc7c3610e4a089fe931 from master
2020-02-03 10:24:15 +01:00
Carlton Gibson
5d18016a07 [3.0.x] Added CVE-2020-7471 to security archive.
Backport of d8b2ccbbb846328a0938347dc70cb2e603164d9a from master
2020-02-03 10:13:00 +01:00
Carlton Gibson
af1999dd33 [3.0.x] Added release date for 3.0.3.
Backport of 1a2600d8dfe86eb0fd0952a8c86107ab20323847 from master
2020-02-03 08:53:28 +01:00
Simon Charette
505826b469 [3.0.x] Fixed CVE-2020-7471 -- Properly escaped StringAgg(delimiter) parameter. 2020-02-03 08:32:54 +01:00
Mariusz Felisiak
27e4ebc0ba [3.0.x] Refs #25778 -- Updated some links to HTTPS and new locations.
Backport of 0ac8ac8b0dece68072548900e992fc31493154c1 from master
2020-01-29 09:35:45 +01:00
Eugene Hatsko
a56e45a2bf [3.0.x] Fixed #31190 -- Fixed prefetch_related() crash for GenericForeignKey with custom ContentType foreign key.
Regression in dffa3e1992562ba60512d96d1eb5859ffff2ceb5.

Backport of 0b013564ef0609d95b1d263626f2e15bccda1a50 from master
2020-01-22 08:25:23 +01:00
Carlton Gibson
57468eaff3 [3.0.x] Fixed #31124 -- Fixed setting of get_FOO_display() when overriding inherited choices.
Regression in 2d38eb0ab9f78d68c083a5b78b1eca39027b279a

Backport of 29c126bb349526b5f1cd78facbe9f25906f18563 from master
2020-01-15 15:36:28 +01:00
Carlton Gibson
6aac9f6b11 [3.0.x] Refs #31097 -- Added release notes for 2f565f84aca136d9cc4e4d061f3196ddf9358ab8.
.

Backport of 927c903f3cd25c817c21738328b53991c035b415 from master
2020-01-14 14:36:25 +01:00
Mariusz Felisiak
92866682c6 [3.0.x] Fixed #31155 -- Fixed a system check for the longest choice when a named group contains only non-string values.
Regression in b6251956b69512bf230322bd7a49b629ca8455c6.

Thanks Murat Guchetl for the report.
Backport of 6f7998adc784032f4b8918ca2eea27537ea4cbbe from master
2020-01-11 19:49:38 +01:00
Adam Johnson
16297e7d5e [3.0.x] Fixed #31154 -- Added support for using enumeration types in templates.
Enumeration helpers are callables, so the template system tried to call
them with no arguments.

Thanks Rupert Baker for helping discover this.

Backport of 5166097d7c80cab757e44f2d02f3d148fbbc2ff6 from master
2020-01-10 09:13:36 +01:00
Mariusz Felisiak
0379da59bd [3.0.x] Fixed #31141 -- Relaxed system check of translation settings for sublanguages.
Regression in 4400d8296d268f5a8523cd02ddc33b12219b2535.

Thanks Enrique Matías Sánchez for the report.
Backport of 53d8646f799de7f92ab9defe9dc56c6125448102 from master
2020-01-08 08:06:33 +01:00
Mariusz Felisiak
4f81f6d236 [3.0.x] Fixed #31136 -- Disabled grouping by aliases on QuerySet.values()/values_list().
Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Thanks Sigurd Ljødal for the report.
Backport of 0f843fdd5b9b2f2307148465cd60f4e1b2befbb4 from master
2020-01-04 20:49:43 +01:00
Simon Charette
02cda09b13 [3.0.x] Fixed #31133 -- Fixed crash when subtracting against a subquery annotation.
The subtract_temporals() database operation was not handling expressions
returning SQL params in mixed database types.

Regression in 35431298226165986ad07e91f9d3aca721ff38ec.

Thanks Reupen Shah for the report.

Backport of 9bcbcd599abac91ea853b2fe10b784ba32df043e from master
2020-01-03 10:35:44 +01:00
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
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
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
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
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
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
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
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
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
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