Mariusz Felisiak
e2e371593f
[3.2.x] Refs #32353 , Refs #32352 -- Fixed GIS tests with PROJ 7.X.
...
Different PROJ versions use different transformations, all are correct
as having a 1 meter accuracy.
These are differences in PROJ versions that cannot and should not be
handled in Django itself.
Thanks Jani Tiainen and David Smith for reports.
See: https://github.com/OSGeo/gdal/issues/3377
Backport of 2cd4026334
from main
2021-03-23 09:17:58 +01:00
Adam Johnson
15a8518388
[3.2.x] Refs #31732 -- Fixed django.utils.inspect caching for bound methods.
...
Thanks Alexandr Artemyev for the report, and Simon Charette for the
original patch.
Backport of 562898034f
from main
2021-03-22 20:49:15 +01:00
Adam Johnson
2420fd2d5c
[3.2.x] Refs #31372 -- Added django.utils.inspect tests for bound methods.
...
Backport of ac72a216a7
from main
2021-03-22 20:49:09 +01:00
Johannes Maron
a8fef6daaf
[3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases.
...
In MTI or ForeignKey as primary key cases, it is required to fetch the attname
from the field instance on the remote model in order to reliably resolve the
to_field_name.
Backport of ceb4b9ee68
from main Backport of 03d0f12c82
from main
Co-authored-by: Johannes Maron <info@johanneshoppe.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-03-18 14:21:12 +01:00
Tim Graham
cd4dc4c3f1
[3.2.x] Refs #26167 -- Added @skipUnlessDBFeature('supports_expression_indexes') to a test.
...
Failure observed on CockroachDB.
Backport of 76c0b32f82
from main
2021-03-09 16:00:19 +01:00
Markus Holtermann
e078747290
[3.2.x] Updated Git branch "master" to "main".
...
This change follows a long discussion on django-develops:
https://groups.google.com/g/django-developers/c/tctDuKUGosc/
Backport of d9a266d657
from main
2021-03-09 09:33:50 +01:00
Simon Charette
7a6ca01f4e
[3.2.x] Fixed #32478 -- Included nested columns referenced by subqueries in GROUP BY on aggregations.
...
Regression in fb3f034f1c
.
Refs #31094 , #31150 .
Thanks Igor Pejic for the report.
Backport of 277eea8fcc
from master
2021-02-24 10:11:37 +01:00
Nick Pope
be8237c7cc
[3.2.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.parse_qsl().
2021-02-19 09:15:09 +01:00
Hasan Ramezani
0debc6ba5b
[3.2.x] Fixed #32455 -- Allowed right combining Q() with boolean expressions.
...
Backport of f2bef2b7bc
from master
2021-02-19 06:21:10 +01:00
Mariusz Felisiak
732cf4c5b4
[3.2.x] Refs #32455 -- Added tests for left combining an empty Q() with boolean expressions.
...
Backport of efce21497c
from master
2021-02-19 06:21:04 +01:00
starryrbs
0e2979e95d
[3.2.x] Fixed #32450 -- Fixed crash when ANDing/ORing an empty Q() with not pickleable Q().
...
Regression in bb0b6e5263
.
Backport of 466920f6d7
from master
2021-02-18 22:06:36 +01:00
Hannes Ljungberg
69a585eb87
[3.2.x] Fixed #32453 -- Added introspection of unique constraint field ordering on SQLite.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Backport of 4d99375b46
from master
2021-02-17 12:18:18 +01:00
Harm Geerts
b89ce413f2
[3.2.x] Fixed #29052 -- Made test database creation preserve alias order and prefer the "default" database.
...
This fixes flushing test databases when two aliases point to the same
database.
Use a list() to store the test database aliases so the order remains
stable by following the order of the connections. Also, always use the
"default" database alias as the first alias to accommodate `migrate`.
Previously `migrate` could be executed on a secondary alias which
caused truncating the "default" database.
Backport of 06e5f7ae16
from master
2021-02-16 13:08:13 +01:00
Chris Jerdonek
65a620948c
[3.2.x] Fixed #32437 -- Fixed cleaning up ALLOWED_HOSTS in LiveServerTestCase on setUpClass() failure.
...
Backport of 694deff82f
from master
2021-02-12 11:53:37 +01:00
Egidijus Macijauskas
aa1aed923b
[3.2.x] Fixed #32433 -- Added error message on QuerySet.delete() following distinct().
...
Backport of 6307c3f1a1
from master
2021-02-11 09:09:59 +01:00
Egidijus Macijauskas
98ce39b5a3
[3.2.x] Refs #19102 -- Removed flaky test Ticket19102Tests.test_ticket_19102_distinct_on.
...
The subquery pushdown only happens because another table is involved in
filter. It's not the distinct usage that causes the pushdown.
The distinct('description').order_by('pk') expression is not valid
because SELECT DISTINCT ON must match initial ORDER BY expressions
which is not the case here.
Backport of 4e8ecf0cb6
from master
2021-02-11 09:09:22 +01:00
Jordan Bae
9eed258283
[3.2.x] Fixed #32425 -- Fixed adding nullable field with default on MySQL.
...
Thanks Simon Charette for the review.
Backport of d4ac23bee1
from master
2021-02-09 08:25:05 +01:00
Mikolaj Rybinski
d881a0ea3b
[3.2.x] Fixed #32420 -- Fixed detecting primary key values in deserialization when PK is also a FK.
...
Backport of 8e90560aa8
from master
2021-02-05 14:19:10 +01:00
Hasan Ramezani
b36beec208
[3.2.x] Fixed #32332 -- Fixed loss of parent with non-numeric pk when saving child after parent.
...
Follow up to 519016e5f2
.
Backport of 7cba92ec55
from master
2021-02-04 07:08:20 +01:00
Mariusz Felisiak
7d65889345
[3.2.x] Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' database.
...
Thanks Kazantcev Andrey for the report.
Regression in f48f671223
.
Backport of f131841c60
from master
2021-02-02 21:35:35 +01:00
Mariusz Felisiak
f944f79e55
[3.2.x] Fixed CVE-2021-3281 -- Fixed potential directory-traversal via archive.extract().
...
Thanks Florian Apolloner, Shai Berger, and Simon Charette for reviews.
Thanks Wang Baohua for the report.
Backport of 05413afa8c
from master.
2021-02-01 09:13:37 +01:00
Sandro Covo
0a3d93ffba
[3.2.x] Fixed #32345 -- Fixed preserving encoded query strings in set_language() view.
...
Thanks Johannes Maron for the review.
Backport of 6822aa5c6c
from master
2021-01-29 12:37:48 +01:00
Tilman Koschnick
18cac6bbfb
[3.2.x] Fixed #32392 -- Fixed ExclusionConstraint crash with Cast() in expressions.
...
Backport of fdfbc66331
from master
2021-01-29 11:26:51 +01:00
Mariusz Felisiak
f4d51e12ae
[3.2.x] Fixed GeoIPTest.test04_city() failure with the latest GeoIP2 database.
...
Backport of 135c800fe6
from master
2021-01-29 11:02:28 +01:00
Illia Volochii
f9b2b1bb3b
[3.2.x] Fixed #32389 -- Fixed ResponseHeaders crash when data is not mapping.
...
Backport of 3c004075b1
from master
2021-01-28 10:17:33 +01:00
Hasan Ramezani
73e7bfc8f5
[3.2.x] Fixed #32290 -- Fixed TemplateNotFound in {% include %} tag for relative path in variable.
...
Backport of c978dd93fd
from master
2021-01-27 11:35:40 +01:00
Simon Charette
9607e3a0cc
[3.2.x] Fixed #32369 -- Fixed adding check constraints with pattern lookups and expressions as rhs.
...
This disables interpolation of constraint creation statements. Since
Constraint.create_sql interpolates its parameters instead of deferring
this responsibility to the backend connection it must disable
connection level parameters interpolation.
Backport of 42e8cf47c7
from master
2021-01-26 08:20:40 +01:00
Mariusz Felisiak
e45b944d69
[3.2.x] Fixed #32367 -- Fixed system check for specifying type of auto-created primary keys for inherited PKs.
...
Regression in b5e12d490a
.
Thanks אורי for the report.
Backport of a03a36121d
from master
2021-01-21 19:38:11 +01:00
Simon Charette
6520ce5251
[3.2.x] Fixed #32374 -- Stopped recording migration application before deferred SQL.
...
Migrations cannot be recorded in the same transaction as its associated
DDL operations when some of it is deferred until the schema editor
context exits.
Regression in c86a3d80a2
.
Backport of 0c42cdf0d2
from master
2021-01-21 07:35:43 +01:00
Simon Charette
900b2ce92b
[3.2.x] Refs #29721 -- Simplified migration used to test atomic recording.
...
This makes sure atomic recording of migration application is used when
the schema editor doesn't defer any statement.
Backport of 533a583578
from master
2021-01-21 07:35:33 +01:00
Paul Ganssle
a5d70cca12
[3.2.x] Refs #32365 -- Allowed use of non-pytz timezone implementations.
...
Backport of 10d1261984
from master
2021-01-19 12:00:40 +01:00
Illia Volochii
8dcb8b9e95
[3.2.x] Fixed #32358 -- Fixed queryset crash when grouping by annotation with Distance()/Area().
...
Made MeasureBase hashable.
Backport of bef6f75842
from master
2021-01-18 12:07:30 +01:00
Timothy McCurrach
a91bf80459
[3.2.x] Fixed #18549 -- Fixed heading for inlines with a OneToOneField.
...
Used verbose_name instead of verbose_name_plural.
Backport of 0aff3fd711
from master.
2021-01-18 09:56:15 +01:00
Hasan Ramezani
f750377318
Fixed #32321 -- Added system checks for invalid model field names in functional indexes.
2021-01-14 12:27:00 +01:00
Jon Moroney
76ae6ccf85
Fixed #31358 -- Increased salt entropy of password hashers.
...
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
2021-01-14 11:20:28 +01:00
Jon Moroney
6bd206e1ff
Refs #31358 -- Added bcrypt password hashers tests for must_update() with salt().
2021-01-14 11:20:28 +01:00
Nick Pope
9204485396
Fixed #16117 -- Added decorators for admin action and display functions.
...
Refs #25134 , #32099 .
2021-01-13 17:19:22 +01:00
Hannes Ljungberg
83fcfc9ec8
Fixed #26167 -- Added support for functional indexes.
...
Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews.
Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
2021-01-13 11:47:50 +01:00
Tim Graham
e3ece0144a
Removed redundant database vendor helpers in gis_tests/utils.py.
2021-01-13 09:22:44 +01:00
Tim Graham
9f91122ed8
Added SpatialFeatures.empty_intersection_returns_none.
2021-01-13 09:22:44 +01:00
Hannes Ljungberg
4c62cdaa10
Refs #26709 -- Made Index raise ValueError on non-string fields.
2021-01-12 20:22:44 +01:00
Paolo Melchiorre
c412d9af7e
Fixed #32291 -- Added fixtures compression support to dumpdata.
2021-01-12 15:47:58 +01:00
Jon Dufresne
ba31b01034
Fixed #31747 -- Fixed model enumeration via admin URLs.
...
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-01-12 14:37:56 +01:00
Johannes Maron
3071660acf
Fixed #29010 , Fixed #29138 -- Added limit_choices_to and to_field support to autocomplete fields.
...
* Fixed #29010 -- Added limit_choices_to support to autocomplete fields.
* Fixed #29138 -- Allowed autocomplete fields to target a custom
to_field rather than the PK.
2021-01-12 11:37:38 +01:00
Hasan Ramezani
ba3fb2e4d0
Refs #32311 -- Fixed CSRF_FAILURE_VIEW system check errors code.
2021-01-12 11:22:13 +01:00
Hasan Ramezani
64331419c8
Fixed #32311 -- Added system check for CSRF_FAILURE_VIEW setting.
2021-01-12 09:44:36 +01:00
Florian Apolloner
2d6179c819
Fixed #32191 -- Made CookieStorage use RFC 6265 compliant format.
...
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
2021-01-07 13:00:53 +01:00
Florian Apolloner
102d92fc09
Refs #32191 -- Added Signer.sign_object()/unsign_object().
...
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
2021-01-06 20:16:47 +01:00
William Schwartz
ec6d2531c5
Fixed #32314 -- Fixed detection when started non-django modules with "python -m" in autoreloader.
...
django.utils.autoreload.get_child_arguments() detected when Python was
started with the `-m` option only for `django` module. This commit
changes the logic to check __spec__, see
https://docs.python.org/3/reference/import.html#main-spec
Now packages can implement their own __main__ with the runserver
command.
2021-01-05 21:03:29 +01:00
Alexander Lyabah
415f50298f
Fixed #32231 -- Allowed passing None params to QuerySet.raw().
2021-01-05 10:37:11 +01:00