1
0
mirror of https://github.com/django/django.git synced 2025-04-17 05:44:38 +00:00

17555 Commits

Author SHA1 Message Date
Mariusz Felisiak
59cce8237c [3.2.x] Fixed #32649 -- Fixed ModelAdmin.search_fields crash when searching against phrases with unbalanced quotes.
Thanks Dlis for the report.

Regression in 26a413507abb38f7eee4cf62f2ee9727fdc7bf8d.
Backport of 23fa29f6a6659e0f600d216de6bcb79e7f6818c9 from main
2021-04-14 12:24:11 +02:00
Hasan Ramezani
700356f93b [3.2.x] Fixed #32635 -- Fixed system check crash for reverse o2o relations in CheckConstraint.check and UniqueConstraint.condition.
Regression in b7b7df5fbcf44e6598396905136cab5a19e9faff.

Thanks Szymon Zmilczak for the report.

Backport of a77c9a4229cfef790ec18001b2cd18bd9c4aedbc from main
2021-04-14 10:32:07 +02:00
Mariusz Felisiak
d6314c4c2e [3.2.x] Fixed #32637 -- Restored exception message on technical 404 debug page.
Thanks Atul Varma for the report.
Backport of 3b8527e32b665df91622649550813bb1ec9a9251 from main
2021-04-13 09:15:25 +02:00
Iuri de Silvio
b245845575 [3.2.x] Fixed #32627 -- Fixed QuerySet.values()/values_list() crash on combined querysets ordered by unannotated columns.
Backport of 9760e262f85ae57df39abe2799eff48a82b14474 from main
2021-04-13 06:16:19 +02:00
Adam Johnson
49e618f4af [3.2.x] Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD.
Backport of 45a58c31e64dbfdecab1178b1d00a3803a90ea2d from main
2021-04-08 13:44:21 +02:00
Claude Paroz
5eb17d31c3 [3.2.x] Fixed #32544 -- Confirmed support for GDAL 3.2 and GEOS 3.9.
Backport of e3cfba0029516aafe40f963378e234df2c0d33bb from main.
2021-04-07 17:04:10 +02:00
Carlton Gibson
f0630e76d3 [3.2.x] Post-release version bump. 2021-04-06 11:32:07 +02:00
Carlton Gibson
b6475d7d79 [3.2.x] Bumped version for 3.2 release. 2021-04-06 11:27:22 +02:00
Mariusz Felisiak
2820fd1be5 [3.2.x] Fixed CVE-2021-28658 -- Fixed potential directory-traversal via uploaded files.
Thanks Claude Paroz for the initial patch.
Thanks Dennis Brinkrolf for the report.

Backport of d4d800ca1addc4141e03c5440a849bb64d1582cd from main.
2021-04-06 08:24:01 +02:00
Claude Paroz
1ea5e98315
[3.2.x] Updated translations from Transifex. 2021-04-06 06:17:47 +02:00
William Schwartz
a118564ae1 [3.2.x] Refs #32105 -- Moved ExceptionReporter template paths to properties.
Refs #32316.

Backport of 7248afe12f40361870388ecdd7e0038eb0d58e47 from main
2021-03-31 09:11:39 +02:00
Mariusz Felisiak
d67d48e923 [3.2.x] Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes.
Backport of f6018c1e63a04e0c12e2ca759e76e05ccf5e09de from main
2021-03-30 11:47:49 +02: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 562898034f65e17bcdd2d951ac5236a1ec8ea690 from main
2021-03-22 20:49:15 +01:00
Carlton Gibson
2f6714cc9b [3.2.x] Bumped version for 3.2 release candidate 1. 2021-03-18 14:25:23 +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 ceb4b9ee68dffc6ab0398886f1758f15f037c472 from main Backport of 03d0f12c823239812da21e5180aaa74dc6fd146e 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
Hasan Ramezani
6b020f3c94 [3.2.x] Fixed #32547 -- Corrected notes about validation in HTML assertions docs.
Backport of ceb4b9ee68dffc6ab0398886f1758f15f037c472 from main
2021-03-18 11:09:03 +01:00
Adam Johnson
46bdc3eaf0 [3.2.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
2021-03-17 21:51:27 +01:00
Claude Paroz
104d6172e8 [3.2.x] Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
Backport of bc43ae7c13b903022ec1fcb4867f5f10d7f125d6 from main
2021-03-10 16:13:03 +01:00
mimi89999
450330952f [3.2.x] Fixed #32512 -- Fixed admin dark theme for autocomplete fields.
Backport of 0df5c8187a9fa9828824ec2b1fdf37d1082d7ebe from main
2021-03-10 11:18:08 +01:00
Mariusz Felisiak
3119e3c5c7 [3.2.x] Refs #32018 -- Corrected color variable for toggle links in admin.
Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2.
Backport of 6f5dbe9dbe45b23b3befe4f1cd2ea13b6049ab96 from main
2021-03-09 18:39:10 +01:00
Mariusz Felisiak
f8aeafe851 [3.2.x] Refs #32018 -- Used --darkened-bg for <pre> elements.
Backport of 781acf0987d80b638057ed1203409e3a19944e3b from main
2021-03-09 18:35:11 +01:00
Mariusz Felisiak
c963bbc9aa [3.2.x] Refs #31811 -- Restored **kwargs to django.test.utils.setup_databases().
Accidentally removed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915.
Backport of c8837322e8b4068441ffe5dd497ab8a323525d3a from master
2021-02-24 12:58:18 +01:00
Simon Charette
7a6ca01f4e [3.2.x] Fixed #32478 -- Included nested columns referenced by subqueries in GROUP BY on aggregations.
Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.

Refs #31094, #31150.

Thanks Igor Pejic for the report.

Backport of 277eea8fcced7f04f3800617f189beb349a3212e from master
2021-02-24 10:11:37 +01:00
Nick Pope
eccf40a303 [3.2.x] Refs #16117 -- Made @action and @display decorators importable from django.contrib.gis.admin.
Backport of 8f02a78695a6c07bc5b05499e6e6cf96bc25320f from master
2021-02-22 10:13:14 +01:00
Carlton Gibson
c238ec5e90 [3.2.x] Bumped version for 3.2 beta 1. 2021-02-19 09:35:45 +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 f2bef2b7bc6c817af0f5fa77e1052a1f5ce12f71 from master
2021-02-19 06:21:10 +01:00
starryrbs
0e2979e95d [3.2.x] Fixed #32450 -- Fixed crash when ANDing/ORing an empty Q() with not pickleable Q().
Regression in bb0b6e526340e638522e093765e534df4e4393d2.

Backport of 466920f6d726eee90d5566e0a9948e92b33a122e 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 4d99375b46ad03fa4b4795319973046f438328c8 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 06e5f7ae1639f1e275e7cc1076dc70ca3ebaa946 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 694deff82f86e025561dfa724425f67e2ff7cbb7 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 6307c3f1a123f5975c73b231e8ac4f115fd72c0d from master
2021-02-11 09:09:59 +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 d4ac23bee1c84d8e4610350202ac068fc90f38c0 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 8e90560aa8868a42bb8eda6273595bf0932a6090 from master
2021-02-05 14:19:10 +01:00
Mariusz Felisiak
ff25791d23 [3.2.x] Refs #32074 -- Fixed TextChoices/IntegerChoices crash on Python 3.10.
EnumMeta has a new keyword argument 'boundary' in Python 3.10. This
is a new mechanism that controls how out-of-range / invalid bits are
handled, see https://bugs.python.org/issue38250.

Backport of 5d9b065d3f93de056588dfee6f1776294dd8bab2 from master
2021-02-04 10:51:41 +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 519016e5f25d7c0a040015724f9920581551cab0.

Backport of 7cba92ec55a5d05450261f375830619870ca84fa 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 f48f671223a20b161ca819cf7d6298e43b8ba5fe.
Backport of f131841c601b9d4884adcdb284b4213c2ad89231 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 05413afa8c18cdb978fcdf470e09f7a12b234a23 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 6822aa5c6c3fbec7c5393a05e990865ba59fe167 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 fdfbc66331292def201c9344e3cd29fbcbcd076a from master
2021-01-29 11:26:51 +01:00
Denis Skulimovskiy
d83249b0b9 [3.2.x] Fixed #32391 -- Used CSS flex properties for changelist filter.
Matched layout adjustment using flex from admin sidebar added in
d24ba1be7a53a113d19e2860c03aff9922efec24.

Filters would become squashed when viewport was
constrained or list display table became too wide.

Backport of 269a76714616fd7ad166a14113f3354bab8d9b65 from master
2021-01-28 15:52:59 +01:00
Illia Volochii
f9b2b1bb3b [3.2.x] Fixed #32389 -- Fixed ResponseHeaders crash when data is not mapping.
Backport of 3c004075b1d4fe4aa1ffc3f7d699dd9525bc6c02 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 c978dd93fda87c6d2e965d385164c35f1a3e64b8 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 42e8cf47c7ee2db238bf91197ea398126c546741 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 b5e12d490af3debca8c55ab3c1698189fdedbbdb.

Thanks אורי for the report.

Backport of a03a36121d22c8784985c7e45727eddef6a3ea7f 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 c86a3d80a25acd1887319198ca21a84c451014ad.

Backport of 0c42cdf0d2422f4c080e93594d5d15381d6e955e from master
2021-01-21 07:35:43 +01:00
Tom Carrick
4cf4c2df56 [3.2.x] Refs #31259 -- Made various dark theme adjustments.
Backport of f054468cac325e8d8fa4d5934b939b93242a3730 from master
2021-01-20 15:49:25 +01:00
Carlton Gibson
0db73315fd [3.2.x] Bumped version for 3.2 alpha 1 release. 2021-01-19 12:02:47 +01:00
Paul Ganssle
a5d70cca12 [3.2.x] Refs #32365 -- Allowed use of non-pytz timezone implementations.
Backport of 10d126198434810529e0220b0c6896ed64ca0e88 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 bef6f7584280f1cc80e5e2d80b7ad073a93d26ec from master
2021-01-18 12:07:30 +01:00