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 e3e48b0012
from master
2020-03-10 15:57:36 +01:00
Mariusz Felisiak
8e30512e7a
[3.0.x] Fixed GeoQuerySetTest.test_unionagg_tolerance() test on Oracle 18c.
...
Backport of 5ca76baa72
from master
2020-03-05 08:56:09 +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 fb3f034f1c
.
Co-authored-by: Simon Charette <charette.s@gmail.com>
Backport of 7b8fa1653f
from master
2020-03-03 11:26:36 +01:00
Mariusz Felisiak
94e192a580
[3.0.x] Refs #31312 -- Fixed FTimeDeltaTests.test_date_case_subtraction() test.
...
Follow up to 16cacdcb3f
.
2020-02-27 20:18:53 +01:00
Simon Charette
16cacdcb3f
[3.0.x] Fixed #31312 -- Properly ordered temporal subtraction params on MySQL.
...
Regression in 9bcbcd599a
.
Thanks rick2ricks for the report.
Backport of 41ebe60728
from master
2020-02-27 09:20:30 +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 79065b55a7
.
Thanks Hans Aarne Liblik for the report.
Backport of 2a038521c4
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 0107e3d105
.
Backport of 1712a76b9d
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 41a3b3d186
from master
2020-02-11 20:40:24 +01:00
Florian Apolloner
22c25bea54
[3.0.x] Reverted "Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes file-like object."
...
This reverts commit cce47ff65a
.
Backport of 549445519c
from master
2020-02-11 20:40:17 +01:00
Jon Dufresne
7540b7eb31
[3.0.x] Fixed #31253 -- Fixed data loss possibility when using caching from async code.
...
Case missed in a415ce70be
.
Backport of e3f6e18513
from master
2020-02-11 10:12:53 +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
673444da5e
[3.0.x] Fixed #31217 -- Made QuerySet.values()/values_list() group by not selected annotations with aggregations used in order_by().
...
Regression in 59b4e99dd0
.
Thanks Jon Dufresne for the report and Simon Charette for the review.
Backport of 6b178a3e93
from master
2020-02-03 07:48:53 +01:00
Eugene Hatsko
a56e45a2bf
[3.0.x] Fixed #31190 -- Fixed prefetch_related() crash for GenericForeignKey with custom ContentType foreign key.
...
Regression in dffa3e1992
.
Backport of 0b013564ef
from master
2020-01-22 08:25:23 +01:00
Sergey Fedoseev
d7e4d6463c
[3.0.x] Fixed #31195 -- Relaxed GeometryDistance test for PROJ 5.2+.
...
Backport of 31e2ab345b
from master
2020-01-21 22:51:45 +01:00
Mariusz Felisiak
5b6778b8b9
[3.0.x] Refs #31097 -- Added django.db.models.Q import to contrib.postgres aggregates tests.
2020-01-17 09:13:11 +01:00
Carlton Gibson
57468eaff3
[3.0.x] Fixed #31124 -- Fixed setting of get_FOO_display() when overriding inherited choices.
...
Regression in 2d38eb0ab9
Backport of 29c126bb34
from master
2020-01-15 15:36:28 +01:00
Mariusz Felisiak
a24686987f
[3.0.x] Refs #31136 -- Made QuerySet.values()/values_list() group only by selected annotation.
...
Regression in 0f843fdd5b
.
Backport of 59b4e99dd0
from master
2020-01-15 09:33:36 +01:00
David Wobrock
0e6cf4393c
[3.0.x] Fixed #31097 -- Fixed crash of ArrayAgg and StringAgg with filter when used in Subquery.
...
Backport of 2f565f84ac
from master
2020-01-14 09:49:56 +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 b6251956b6
.
Thanks Murat Guchetl for the report.
Backport of 6f7998adc7
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 5166097d7c
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 4400d8296d
.
Thanks Enrique Matías Sánchez for the report.
Backport of 53d8646f79
from master
2020-01-08 08:06:33 +01:00
Mariusz Felisiak
f9110a1b6d
[3.0.x] Fixed timezones tests for PyYAML 5.3+.
...
Backport of 8be477be5c
from master
2020-01-07 09:55:15 +01:00
Mariusz Felisiak
4f81f6d236
[3.0.x] Fixed #31136 -- Disabled grouping by aliases on QuerySet.values()/values_list().
...
Regression in fb3f034f1c
.
Thanks Sigurd Ljødal for the report.
Backport of 0f843fdd5b
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 3543129822
.
Thanks Reupen Shah for the report.
Backport of 9bcbcd599a
from master
2020-01-03 10:35:44 +01:00
Mariusz Felisiak
09b4224e11
[3.0.x] Refs #31040 -- Fixed crypt.crypt() call in test_hashers.py.
...
An empty string is invalid salt in Python 3 and raises exception since
Python 3.9, see https://bugs.python.org/issue38402 .
Backport of 1960d55f8b
from master
2020-01-03 07:47:56 +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 85458e94e3
.
Thanks Reupen Shah for the report.
Backport of 5779cc938a
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 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
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
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
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
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
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
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
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
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
Baptiste Mispelon
3ed55606c4
[3.0.x] Fixed #31031 -- Fixed data loss in admin changelist view when formset's prefix contains regex special chars.
...
Regression in b18650a263
.
Backport of 52936eface
from master
2019-11-26 09:19:19 +01:00
John Bowen
b6cbc88f26
[3.0.x] Fixed #27914 -- Fixed serialization of nested classes in migrations.
...
Backport of 29d8198841
from master
2019-11-25 11:27:15 +01:00
John Bowen
ba5760965e
[3.0.x] Refs #23950 --- Moved test DeconstructibleInstances class to a module level.
...
DeconstructibleInstances was not importable from the asserted path.
Backport of 8008795a38
from master
2019-11-25 11:27:09 +01:00
Carlton Gibson
947f8e3485
[3.0.x] Fixed #31012 -- Reverted "Fixed #29056 -- Fixed HTML5 validation of required SelectDateWidget."
...
This reverts commit f038214d91
.
The initial issue was incorrect. Django 2.2, and before, did not
generate invalid HTML as reported. With f03821 in place invalid HTML
was generated.
Thanks to Kevin Brown for follow-up report and investigation.
Backport of ee4a19053a
from master
2019-11-21 21:06:07 +01:00
Carlton Gibson
0e58745716
[3.0.x] Pinned asgiref to 3.2 series.
...
Backport of 36453526d3
from master
2019-11-20 15:13:28 +01:00
Mariusz Felisiak
b6be0699b9
[3.0.x] Fixed #30986 -- Fixed queryset crash when filtering against boolean RawSQL expressions on Oracle.
...
Backport of 8685e764ef
from master
2019-11-18 09:16:21 +01:00
George Marshall
fa6076daf4
[3.0.x] Fixed #30971 -- Prevented Query.resolve_lookup_value() from coercing list values to tuples.
...
Regression in 8a281aa7fe
.
Backport of 8be79984dc
from master
2019-11-13 09:20:50 +01:00
Hannes Ljungberg
8d3f43f7a9
[3.0.x] Fixed #30967 -- Fixed TrigramTest failures on PostgreSQL 12+.
...
Backport of 6e2f05b2e3
from master
2019-11-11 13:30:14 +01:00
Stephen Rauch
76d293f3e6
[3.0.x] Refs #30183 -- Doc'd dropping support for sqlparse < 0.2.2.
...
Support for sqlparse < 0.2.2 was broken in
782d85b6df
because is_whitespace property
was added in sqlparse 0.2.2.
Backport of 4b6db766ba
from master
2019-11-06 09:01:48 +01:00
Carlton Gibson
dd2ca8b0ea
[3.0.x] Fixed #30931 -- Restored ability to override Model.get_FIELD_display().
...
Thanks Sergey Fedoseev for the implementation idea.
Regression in a68ea23101
.
Backport of 2d38eb0ab9
from master
2019-11-04 08:15:03 +01:00
Carlton Gibson
8740ff334a
[3.0.x] Fixed #30902 -- Added __str__() for model choice enums.
...
Allows expected behavior when cast to str, also matching behaviour of
created instances with those fetched from the DB.
Thanks to Simon Charette, Nick Pope, and Shai Berger for reviews.
Backport of dbcd7b064e
from master
2019-10-25 09:38:41 +02:00