1
0
mirror of https://github.com/django/django.git synced 2025-07-18 00:29:13 +00:00

3743 Commits

Author SHA1 Message Date
Mariusz Felisiak
cca0d98118 [3.1.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:25:24 +02:00
Adam Johnson
95ee8fecb5 [3.1.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
2021-03-17 21:51:51 +01:00
Jacob Walls
200b71b593 [3.1.x] Fixed typos in assertQuerysetEqual() docs and 1.6 release notes.
Backport of 0c7e880e13b837dd76276c04ebdc338bb76d1379 from master
2021-02-26 09:12:22 +01:00
Mariusz Felisiak
bdad3eb7ec [3.1.x] Added stub release notes for 3.1.8.
Backport of e0f82d7992ad7085dcf4ed096a6ad2e3ad89eaae from master
2021-02-25 20:30:29 +01:00
Markus Holtermann
7fffdc4aad [3.1.x] Updated links to DEPs.
Backport of 7cc6899d4176539e5d59a2e921b938904d3a8944 from master
2021-02-25 17:27:54 +01:00
Carlton Gibson
3668da8de8 [3.1.x] Added CVE-2021-23336 to security archive.
Backport of ab58f072502e86dfe21b2bd5cccdc5e94dce8d26 from master
2021-02-19 11:05:36 +01:00
Nick Pope
8f6d431b08 [3.1.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.limited_parse_qsl(). 2021-02-18 10:15:30 +01:00
Nick Pope
536d1174bb [3.1.x] Added documentation extlink for bugs.python.org.
Backport of d02d60eb0f032c9395199fb73c6cd29ee9bb2646 from master
2021-02-17 14:26:48 +01:00
Mariusz Felisiak
9efe832ee1 [3.1.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:36:06 +01:00
Mariusz Felisiak
65d4c59da9 [3.1.x] Added stub release notes for 3.1.7.
Backport of 8d3c3a57174a072479978d60f5ecdb9fd3c2fd23 from master
2021-02-01 10:55:28 +01:00
Mariusz Felisiak
a930e77a83 [3.1.x] Added CVE-2021-3281 to security archive.
Backport of f749148d62ece28d208ab66b109f858215ba090a from master
2021-02-01 10:46:17 +01:00
Mariusz Felisiak
02e6592835 [3.1.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:58 +01:00
Denis Skulimovskiy
82e1294602 [3.1.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:55:51 +01:00
Carlton Gibson
fa203f1759 [3.1.x] Fixed #32348, Refs #29087 -- Corrected tutorial for updated deleting inlines UI.
Updated tutorial to match change in 24e540fbd71bd2b0843e751bde61ad0052a811b3
allowing deletion of original extra inlines.

Backport of f4272d000af598018247fe9687dac0fd02a29a7c from master
2021-01-27 08:48:14 +01:00
Carlton Gibson
622e37ca6d [3.1.x] Added stub release notes for 3.1.6.
Backport of 966ed414b2adfc9ecc26a9d529dec99d94262cd9 from master
2021-01-04 08:59:11 +01:00
Carlton Gibson
3bfe6da27b Added release date for 3.1.5.
Backport of 767917ed4901ca076572c7ec6806b91fb7581fdb from master.
2021-01-04 08:43:07 +01:00
Mariusz Felisiak
5fdc81d893 [3.1.x] Fixed #32304 -- Fixed prefixing STATIC_URL and MEDIA_URL by SCRIPT_NAME for absolute URLs with no domain.
Thanks Adam Hooper for the report.

Regression in c574bec0929cd2527268c96a492d25223a9fd576.
Backport of e13b71403bd1568abed237858127677144d43d23 from master
2020-12-31 13:19:34 +01:00
Mariusz Felisiak
6b4b7da740 [3.1.x] Fixed #32299 -- Prevented mutating handlers when processing middlewares marking as unused in an async context.
Thanks Hubert Bielenia for the report.
Backport of 98ad327864aed8df245fd19ea9d2743279e11643 from master
2020-12-29 09:06:03 +01:00
Jon Dufresne
5d41fd22dc [3.1.x] Added backticks to code literals in various docs.
Backport of 550297d20d085bc5a440d905cd3cb2e286588ca8 from master
2020-12-15 07:21:53 +01:00
sage
a891e1bb0a [3.1.x] Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle.
__isnull=True on key transforms should not match keys with NULL values.

Backport of 8d7085e0fd004af5431389f3d903aba6220d7957 from master
2020-12-11 11:18:15 +01:00
Mariusz Felisiak
d3e3d63bb1 [3.1.x] Added stub release notes for 3.1.5.
Backport of adb40d217ec57ade46b1394cfbf3c513dc669445 from master
2020-12-01 07:19:22 +01:00
Mariusz Felisiak
0313af7d8a [3.1.x] Added release date for 3.1.4.
Backport of 670261b8d6d8196943013ebe9698f99fd9dde43c from master
2020-12-01 06:25:27 +01:00
sage
a7935fe942 [3.1.x] Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key transforms with non-string values on SQLite.
Thanks Gordon Wrigley for the report.

Backport of fe6e5824218bab7cf47dee112d68325b338f9947 from master
2020-11-25 20:30:38 +01:00
Mariusz Felisiak
97bfe0cba5 [3.1.x] Fixed #32224 -- Avoided suppressing connection errors in supports_json_field on SQLite.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.

Thanks Juan Garcia Alvite for the report.
Backport of f5e5aac59ebbcea46b98d37834915de0f43d7cc8 from master
2020-11-25 12:21:29 +01:00
Hasan Ramezani
166c0d2474 [3.1.x] Fixed #32200 -- Fixed grouping by ExpressionWrapper() with Q objects.
Thanks Gordon Wrigley for the report.

Regression in df32fd42b84cc6dbba173201f244491b0d154a63.

Backport of fe9c7ded2996364f853c524b4421274717d89d5f from master
2020-11-19 21:42:14 +01:00
Carlton Gibson
012822c7f9 [3.1.x] Fixed #32202 -- Fixed autoreloader argument generation for Windows with Python 3.7-.
Backport of ead37dfb580136cc27dbd487a1f1ad90c9235d15 from master
2020-11-19 12:12:47 +01:00
Nick Pope
1f6e7fb4ab [3.1.x] Changed docs and a code comment to use gender-neutral pronouns.
Follow up to e1b77238171cc96f4451a06fb4682e2378896238.

Backport of 477c800443d091b5f36be9b5f83ce16c85da5879 from master.
2020-11-13 22:29:41 +01:00
Hannes Ljungberg
cc3870c30f [3.1.x] Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery annotations on PostgreSQL.
Backport of 0773837e15bb632afffb6848a58c59a791008fa1 from master
2020-11-10 08:13:03 +01:00
Carlton Gibson
8b3010a298 [3.1.x] Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers.
Backport of ebb08d19424c314c75908bc6048ff57c2f872269 from master
2020-11-04 11:09:52 +01:00
Patrick Arminio
bb74d2db98 [3.1.x] Fixed #32162 -- Fixed setting Content-Length header in AsyncRequestFactory.
Backport of 542b4b3ab44d33dfd9b00c22f624ee4aed6f7534 from master
2020-11-03 10:33:34 +01:00
Carlton Gibson
c13702a9f3 [3.1.x] Added stub release notes for 3.1.4.
Backport of c8785b473f99a0dbc76f8a61b88904e2f44998ae from master
2020-11-02 09:21:21 +01:00
Carlton Gibson
3df3e2ef8d [3.1.x] Set release date for 3.1.3, 3.0.11, and 2.2.17.
Backport of 7fc07b9b2ba0c5c62a8840325d21b414a099fda0 from master
2020-11-02 08:35:59 +01:00
Christian Klus
ab951d242e [3.1.x] Fixed #32152 -- Fixed grouping by subquery aliases.
Regression in 42c08ee46539ef44f8658ebb1cbefb408e0d03fe.

Thanks Simon Charette for the review.

Backport of 4ac2d4fa42e1659f328c35b6b8d4761b3419c11a from master
2020-10-29 11:30:53 +01:00
Josh Santos
b3d667f20d [3.1.x] Fixed #32127 -- Fixed admin change-form textarea layout for mid-sized displays.
Backport of 36bc47069ce071e80c8129500de3b8664d2058a7 from master
2020-10-27 16:06:57 +01:00
Carlton Gibson
d00127ccab [3.1.x] Fixed #32128 -- Added asgiref 3.3 compatibility.
Thread sensitive parameter is True by default from asgiref v3.3.0.
Added an explicit thread_sensitive=False to previously implicit uses.

Backport of e17ee4468875077b90b70bb6a589ebad7493f757 from master
2020-10-27 11:29:31 +01:00
Mariusz Felisiak
767e06b5a8 [3.1.x] Fixed #32130 -- Fixed pre-Django 3.1 password reset tokens validation.
Thanks Gordon Wrigley for the report and implementation idea.

Regression in 226ebb17290b604ef29e82fb5c1fbac3594ac163.
Backport of 34180922380cf41cd684f846ecf00f92eb289bcf from master
2020-10-22 13:22:00 +02:00
Mariusz Felisiak
c6b95be190 [3.1.x] Updated release notes following backport of 4047c1602ce5f0b569ae763aa533c5de78cfc0a9. 2020-10-22 10:11:43 +02:00
Carlton Gibson
b37d5849b7 [3.1.x] Fixed #32069 -- Fixed admin change-form layout on small screens.
Restored flex-wrap CSS declaration to form elements at smallest breakpoint.
This was present since the responsive admin was introduced in dc37e8846eeedc3a9100ca21fdc9d579bc534c89.
Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822, where it was accidentally removed.

Backport of 257f8495d6c93e30ab0f52af4c488d7344bcf112 from master
2020-10-21 15:09:45 +02:00
Hasan Ramezani
2212927c1b [3.1.x] Fixed #32107 -- Fixed ProtectedError.protected_objects and RestrictedError.restricted_objects.
Regression in 4ca5c565f4dc9e97845036e86416abc5cfde766c and
ab3cbd8b9a315911248227208630a020cedca08f.

Thanks Vitaliy Yelnik for the report.

Backport of 3b1746d5194778fab15c15dd14c212e0912ec8f3 from master
2020-10-19 13:10:13 +02:00
Mariusz Felisiak
536213278c [3.1.x] Refs #32096 -- Fixed ExclusionConstraint crash with JSONField key transforms in expressions.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.

Backport of ee0abac169c2dcc6818d583247903c2a8ef55f7c from master.
2020-10-14 22:10:09 +02:00
Mariusz Felisiak
ae6b24093c [3.1.x] Refs #32096 -- Fixed ExpressionWrapper crash with JSONField key transforms.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.

Thanks Simon Charette and Igor Jerosimić for the report.

Backport of bbd55e58639c33b4c5adff5f41b78deffc915c11 from master
2020-10-14 21:03:40 +02:00
Mariusz Felisiak
59fe0b8541 [3.1.x] Refs #32096 -- Fixed __in lookup crash against key transforms for JSONField.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd and
1251772cb83aa4106f526fe00738e51c0eb59122.

Thanks Simon Charette and Igor Jerosimić for the report.

Backport of 7e1e198494d4fc72cf6e153f9d24fe2493c17dc1 from master
2020-10-14 21:03:15 +02:00
Mariusz Felisiak
d94e777b66 [3.1.x] Refs #32096 -- Fixed crash of ArrayAgg/StringAgg/JSONBAgg with ordering over JSONField key transforms.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.

Thanks Igor Jerosimić for the report.

Backport of 1f31027bb3ad460864fbcbbb89eeb328c0a2f184 from master
2020-10-14 21:02:29 +02:00
Mariusz Felisiak
84685e5132 [3.1.x] Refs #31040 -- Doc'd Python 3.9 compatibility.
Backport of e18156b6c35908f2a4026287b5225a6a4da8af1a from master.
2020-10-13 08:36:43 +02:00
Tim Schilling
4047c1602c [3.1.x] Fixed #32091 -- Fixed admin search bar width on filtered admin page.
Backport of b7da588e883e12b8ac3bb8a486e654e30fc1c6c8 from master
2020-10-09 12:11:15 +02:00
Qi Zhao
8c403b17f9 [3.1.x] Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and read-only JSONField values in admin.
Backport of de81676b51e4dad510ef387c3ae625f9091fe57f from master
2020-10-09 08:44:32 +02:00
Tom Carrick
3add635ff7 [3.1.x] Fixed #32072 -- Fixed admin search bar height.
Thanks şuayip üzülmez for the report.

Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822.

Backport of 342a41740dcfe48a5cd4560c63eeca4d7d41610d from master
2020-10-06 11:57:34 +02:00
Mariusz Felisiak
079e766217 [3.1.x] Added stub release notes for 3.1.3.
Backport of 85fa24e3eb8d0f942ef05c48ea8b0a84659e7ce4 from master
2020-10-01 07:57:13 +02:00
Mariusz Felisiak
f18b51a7d8 [3.1.x] Added release date for 3.1.2.
Backport of 5a1f0f131885e2eeec473e5ee23c72995d8149bd from master
2020-10-01 07:23:12 +02:00
Tom Carrick
57b359343b [3.1.x] Fixed #31986 -- Fixed admin filter sidebar scrolling.
Regression in 2bc38bc7cae002f949157d95e3f0c19ea6b8ca5c.

Thanks haki for the report.

Backport of 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822 from master
2020-09-30 21:49:11 +02:00