1
0
mirror of https://github.com/django/django.git synced 2025-04-22 08:14:37 +00:00

28522 Commits

Author SHA1 Message Date
Mariusz Felisiak
b7df7de44f [3.1.x] Fixed #32038 -- Fixed EmptyFieldListFilter crash with GenericRelation.
Thanks Javier Matos Odut for the report.

Backport of e4ab44a4b2ef70be09c35c9197a19fd2e993b4d6 from master
2020-09-25 10:10:26 +02:00
Mariusz Felisiak
986cd28f95 [3.1.x] Refs #32038 -- Added note to ModelAdmin.list_filter docs that GenericForeignKeys are not supported.
Backport of 33e91f3ed8ce6412d9d0964acb59166579b9b20c from master
2020-09-25 10:10:20 +02:00
Mariusz Felisiak
d05a1f5792 [3.1.x] Fixed typo and indentation in docs/ref/forms/fields.txt.
Backport of 10a289745f8ecb558f5c22d734315c96d8d4b96e from master
2020-09-25 10:04:50 +02:00
Paweł Zarębski
562a4824d7 [3.1.x] Fixed example of QuerySet.explain() with flags in docs.
Backport of 054ab1e00fe59a103b6b8ff29bc7930c7d492406 from master
2020-09-23 11:48:08 +02:00
Mariusz Felisiak
fbb7881956 [3.1.x] Fixed #32012 -- Made test database creation sync apps models when migrations are disabled.
Thanks Jaap Roes for the report.
Backport of 77caeaea888d1744416b213036ff29699758de76 from master
2020-09-23 10:54:50 +02:00
Carlton Gibson
2c629b37d5 [3.1.x] Fixed #32016 -- Clarified manual logging config docs.
Backport of 2a55431a5678af52f669ffe7dff3dd0bd21727f8 from master
2020-09-22 14:16:40 +02:00
János Roden
1d7c4addbd [3.1.x] Fixed #32004 -- Clarified docs for when request.FILES is set.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of 9e4b1ad33e436e8fe60af756d7e09639ee886ac2 from master
2020-09-22 13:28:55 +02:00
Mariusz Felisiak
73d084bf97 [3.1.x] Refs #32013 -- Added backward incompatibility note about ModelChoiceIterator changes.
Backport of ba6b32e5efc4c813ba4432777b3b1743d4205d14 from master
2020-09-21 06:26:59 +02:00
David D Lowe
b9ee225d08 [3.1.x] Doc'd that UpdateCacheMiddleware and cache_page affect downstream caches.
Thanks to Nick Pope for review.

Backport of f3901b5899d746dc5b754115d94ce9a045b4db0a from master
2020-09-17 14:29:00 +02:00
Mike Lissner
17a4082078 [3.1.x] Refs #28939 -- Doc’d Prefetch behavior with multiple DBs.
Backport of 8c0794ba0da2b5d668a7eb1c167e54beb7f40890 from master
2020-09-17 14:27:31 +02:00
Mariusz Felisiak
5a03e14deb [3.1.x] Refs #32007 -- Skipped test_q_expression_annotation_with_aggregation on Oracle.
Backport of 3a9f192b131f7a9b0fe5783c684b23015fa67cc8 from master
2020-09-16 11:47:48 +02:00
Mariusz Felisiak
1afc9b31bb [3.1.x] Fixed #32007 -- Fixed queryset crash with Q() annotation and aggregation.
Thanks Gordon Wrigley for the report.

Regression in 8a6df55f2dd5131282084a4edfd48f63fbf8c69a.
Backport of eaf9764d3bb25970da89de5799d8d308715628ba from master
2020-09-15 11:41:42 +02:00
Mariusz Felisiak
a3bb80dc31 [3.1.x] Fixed #31990 -- Fixed QuerySet.ordered for GROUP BY queries on models with Meta.ordering.
Regression in 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6.

Thanks Julien Dutriaux for the report.
Backport of e11d05e0b488a3ff2b3c9d8f2e1e50f471750d6e from master
2020-09-14 20:08:18 +02:00
Mariusz Felisiak
462d7837f9 [3.1.x] Corrected exception types in QuerySet docs.
Backport of 9a0e5052ed5509cc582b1b3eeaa30f85858fee48 from master
2020-09-13 20:11:00 +02:00
Mariusz Felisiak
6b16623bd9 [3.1.x] Refs #31956 -- Doc'd consequences of disabling psycopg2's JSONB typecaster.
Follow up to 0be51d2226fce030ac9ca840535a524f41e9832c.
Backport of 438b85dfab4f16a2e709e2bcdbfefecd7bfee89e from master
2020-09-10 11:00:59 +02:00
Mariusz Felisiak
4e6b6fac43 [3.1.x] Mentioned ASGI handler in SuspiciousOperation docs.
Backport of 453967477e3ddae704cd739eac2449c0e13d464c from master
2020-09-09 09:35:56 +02:00
jpribyl
3fc636244e [3.1.x] Fixed #31894 -- Added note about using JSONField key lookups with QuerySet.exclude() in docs.
Backport of 17407eca59b0572228067cdee51433f49a1e0adb from master
2020-09-04 10:17:13 +02:00
Mariusz Felisiak
f36c441f80 [3.1.x] Refs #31224 -- Made sync_to_async() examples use thread sensitive with ORM calls.
Backport of 8d59075184f4cd2852b374359850ff7aeb412ec1 from master
2020-09-03 12:07:25 +02:00
Mariusz Felisiak
17d5b16dbf [3.1.x] Refs #31901 -- Fixed SeleniumTests.test_list_editable_popups with headless mode.
Backport of 6a881197e92a03a8bb7c91440d0a702b6dfd6736 from master
2020-09-02 15:18:15 +02:00
Brian Helba
c69c6886de [3.1.x] Fixed #31941 -- Corrected FileField.deconstruct() with a callable storage.
Backport of 2d42e23b6d8fd76f93a96b2310b2c9dfd441d009 from master
2020-09-02 11:07:43 +02:00
Carlton Gibson
8178c4fbfb [3.1.x] Refs #11390 -- Clarified dual-calling of ChoiceField.choices callable.
Backport of 0bf627f0b2f868cdcc53ac12cc7f390901d4b83d from master
2020-09-02 08:29:33 +02:00
007gzs
2610a3909e [3.1.x] Added "Bugfixes" section to release notes for 3.1.2.
Backport of 76e0151ea0e0f56dca66cee846a78b89346d2c4c from master
2020-09-02 07:00:36 +02:00
Carlton Gibson
63787b3ed6 [3.1.x] Added CVE-2020-24583 & CVE-2020-24584 to security archive.
Backport of d5b526bf78a9e5d9760e0c0f7647622bf47782fe from master
2020-09-01 11:38:06 +02:00
Carlton Gibson
2629882095 [3.1.x] Added stub release notes for 3.1.2.
Backport of 7a60670b78894cae0f5f21d39f10fa38b1283497 from master
2020-09-01 10:45:36 +02:00
Carlton Gibson
a503f5ebdd [3.1.x] Post-release version bump. 2020-09-01 10:17:06 +02:00
Carlton Gibson
f33c2528f4 [3.1.x] Bumped version for 3.1.1 release. 3.1.1 2020-09-01 10:06:10 +02:00
Carlton Gibson
1ef38005a7 [3.1.x] Added release date for 3.1.1, 3.0.10, and 2.2.16.
Backport of 976e2b7420c0f7e3060a13792b97511a9aad31d7 from master
2020-09-01 09:57:12 +02:00
Mariusz Felisiak
2b099caa59 [3.1.x] Fixed CVE-2020-24584 -- Fixed permission escalation in intermediate-level directories of the file system cache on Python 3.7+.
Backport of f56b57976133129b0b351a38bba4ac882badabf0 from master.
2020-09-01 09:35:05 +02:00
Mariusz Felisiak
934430d22a [3.1.x] Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level static and storage directories on Python 3.7+.
Thanks WhiteSage for the report.

Backport of ea0febbba531a3ecc8c77b570efbfb68ca7155db from master.
2020-09-01 09:35:05 +02:00
007gzs
dfa31f8e87 [3.1.x] Fixed #31901 -- Prevented content overflowing in the admin changelist with navigation sidebar.
Backport of 2bc38bc7cae002f949157d95e3f0c19ea6b8ca5c from master
2020-09-01 08:19:12 +02:00
Abdullah Dursun
42f8c085a6 [3.1.x] Corrected note about long names in search docs.
Backport of fcad0b132427847d6db2008f00fbe45a7b45cad3 from master
2020-08-31 22:37:20 +02:00
Hasan Ramezani
eda59ba2ec [3.1.x] Fixed #31934 -- Added note about the default of SameSite cookie flag in modern browsers.
Backport of 70731fc6feeb40eab535781e938b0e67ff0077ad from master
2020-08-31 12:33:17 +02:00
Federico Jaramillo Martínez
c4e5384e73 [3.1.x] Fixed #31952 -- Fixed EmptyFieldListFilter crash with reverse relationships.
Thanks dacotagh for the report.

Backport of 179d9dc0c2265176f9f7062a1d98dc44d896f91f from master
2020-08-31 10:40:21 +02:00
Simon Charette
2986ec031d [3.1.x] Fixed #31965 -- Adjusted multi-table fast-deletion on MySQL/MariaDB.
The optimization introduced in 7acef095d73 did not properly handle
deletion involving filters against aggregate annotations.

It initially was surfaced by a MariaDB test failure but misattributed
to an undocumented change in behavior that resulted in the systemic
generation of poorly performing database queries in 5b83bae031.

Thanks Anton Plotkin for the report.

Refs #23576.

Backport of f6405c0b8ef7aff513b105c1da68407a881a3671 from master
2020-08-31 09:22:59 +02:00
Mariusz Felisiak
655e1ce6b1 [3.1.x] Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder on PostgreSQL.
Thanks Marc Debureaux for the report.
Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews.

Backport of 0be51d2226fce030ac9ca840535a524f41e9832c from master
2020-08-28 19:12:02 +02:00
Kevin Michel
3a42c0447b [3.1.x] Fixed #31928 -- Fixed detecting an async get_response in various middlewares.
SecurityMiddleware and the three cache middlewares were not calling
super().__init__() during their initialization or calling the required
MiddlewareMixin._async_check() method.

This made the middlewares not properly present as coroutine and
confused the middleware chain when used in a fully async context.

Thanks Kordian Kowalski for the report.

Backport of 825ce75faec63ce81601e31152c757a9c28fed13 from master
2020-08-28 12:35:53 +02:00
Mariusz Felisiak
14a19700d8 [3.1.x] Fixed #31912 -- Removed strict=True in Path.resolve() in project template and CommonPasswordValidator.
This caused permission errors when user didn't have permissions to
all intermediate directories in a Django installation path.

Thanks tytusd and leonyxz for reports.

Regression in edeec1247e52de6fc32cee93e96d4ce36003ea4b and
26554cf5d1e96db10d0d5f4b69683a22fb82fdf8.
Backport of e39e727ded673e74016b5d3658d23cbe20234d11 from master
2020-08-28 05:59:11 +02:00
Mariusz Felisiak
9075d1f662 [3.1.x] Fixed #31936 -- Fixed __in lookup on key transforms for JSONField.
This resolves an issue on databases without a native JSONField
(MariaDB, MySQL, SQLite, Oracle), where values must be wrapped.

Thanks Sébastien Pattyn for the report.
Backport of 1251772cb83aa4106f526fe00738e51c0eb59122 from master
2020-08-26 22:14:46 +02:00
Michael Galler
b6d2419120 [3.1.x] Fixed #31905 -- Made MiddlewareMixin call process_request()/process_response() with thread sensitive.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of 547a07fa7ec4364ea9ecd2aabfdd16ee4c63003c from master
2020-08-26 07:54:55 +02:00
Mariusz Felisiak
e81aa7a94a [3.1.x] Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing URL kwargs into context."
This reverts commit 4ed534758cb6a11df9f49baddecca5a6cdda9311.

Backport of bb8f66934d93faf80cd1a2dda65aaedce21a6fc5 from master
2020-08-24 11:39:05 +02:00
Mariusz Felisiak
f247c66bb5 [3.1.x] Refs #31877 -- Reverted "Fixes #31877 -- Used lazy() for TemplateView kwarg deprecation warning."
This reverts commit 20799cc0a6d98816b9ef0577e24691bd26b80d7d.

Backport of 04e87e79a0bd2b1b9fdc30f884a637a3268733f0 from master
2020-08-24 11:38:57 +02:00
Kaustubh
5d55b878cf [3.1.x] Fixed #31925 -- Fixed typo in docs/releases/3.0.txt.
Backport of 3e753d3de33469493b1f0947a2e0152c4000ed40 from master
2020-08-21 09:48:30 +02:00
Ninad Kulkarni
8fb24a5130 [3.1.x] Fixed #31906 -- Fixed typo in docs/ref/forms/fields.txt.
Backport of 927bd888ddea8bf37aec5515a7367fe8aeb3d1b4 from master
2020-08-21 09:43:51 +02:00
Juan Pedro Fisanotti
af190bf263 [3.1.x] Improved wording in async views docs.
Backport of 41725602afebe2ddb018b99afe134384cc3bf69e from master
2020-08-20 09:08:19 +02:00
Enderson Menezes
26ccc7701d [3.1.x] Fixed #31909 -- Fixed typo in docs/ref/contrib/admin/index.txt.
Backport of 67e4a9a4b9a40609fecc14f1604929ff2259a15a from master
2020-08-20 07:51:20 +02:00
Mariusz Felisiak
7eaa2776e1 [3.1.x] Fixed #31895 -- Fixed crash when decoding invalid session data.
Thanks Matt Hegarty for the report.
Regression in d4fff711d4c97356bd6ba1273d2a5e349326eb5f.
Backport of 4376c2c7f8cd9c7604a7d053b3c4022dd5ac2795 from master
2020-08-19 12:06:55 +02:00
David Smith
b2fc5292b2 [3.1.x] Fixed #27679 -- Doc'd that empty formsets display extra + min_num forms.
Backport of e2e34f4de3b90f3820ee11d49cc369ef573bc2ef from master
2020-08-18 22:59:16 +02:00
Mariusz Felisiak
6eb0f4f70d [3.1.x] Refs #17642 -- Doc'd min_num and validate_min arguments in modelformset_factory() docs.
Changed arguments ordering to match the modelformset_factory()
signature.

Backport of 13704b057d3c77d9442a150f79d8fad34bcdb995 from master.
2020-08-18 09:33:49 +02:00
Jon Dufresne
c5a804207d [3.1.x] Fixed #31892 -- Added backward incompatibility note about Media <script> tags changes.
Refs 31080.

Backport of dd5173ca1b3e65f8664ad90b81cba032826991dc from master
2020-08-17 10:51:44 +02:00
Mariusz Felisiak
18e87ac85f [3.1.x] Refs #31863 -- Added release notes for 94ea79be137f3cb30949bf82198e96e094f2650d.
Backport of 21768a99f47ee73a2f93405151550ef7c3d9c8a2 from master
2020-08-13 16:30:37 +02:00