28575 Commits

Author SHA1 Message Date
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
Craig Smith
d67f965c79 [3.1.x] Fixed #32045 -- Doc'd GenericRelatedObjectManager methods.
This also documents that .remove() and clear() methods delete related
objects.

Backport of 354c1524b38c9b9f052c1d78dcbfa6ed5559aeb3 from master
2020-11-06 12:09:02 +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
Nikita Sobolev
31946faf4f [3.1.x] Updated {% static %} tag examples in docs to use single quotes where appropriate.
Backport of 42f3fafdfab01f6b04b817c45140e8309eecf84c from master
2020-11-02 10:35:04 +01:00
Max Smolens
e707a1bd9a [3.1.x] Fixed #31850 -- Fixed BasicExtractorTests.test_extraction_warning with xgettext 0.21+.
"format string with unnamed arguments cannot be properly localized"
warning is not raised in xgettext 0.21+.

This patch uses a message that causes an xgettext warning regardless of
the version.

Backport of 07a30f561661efae1691ff45d10ec6014b395b58 from master
2020-11-02 10:29:14 +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
7597c51efb [3.1.x] Post-release version bump. 2020-11-02 09:11:45 +01:00
Carlton Gibson
4264d78f2d [3.1.x] Bumped version for 3.1.3 release. 3.1.3 2020-11-02 09:04:03 +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
Caio Ariede
62f6ab2c4a [3.1.x] Fixed #26962 -- Doc'd running migrations in transactions.
Backport of 9ca22c7733efeeb140b75585c6387ef2cb861d19 from master
2020-10-29 08:39:43 +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
Jon Dufresne
4e7190017b [3.1.x] Corrected output of rendered formset example in model formsets docs.
Backport of 2b56c566532c17dab4916a5a60e4db24a07eaa1a from master
2020-10-26 07:58:38 +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
Simon Charette
8aedad6909 [3.1.x] Refs #9475 -- Linked through_default docs to related managers methods.
Backport of 284bde3fbe07485d64289e28014a4eada68aef91 from master
2020-10-22 10:09:41 +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
Mariusz Felisiak
012df8d2d3 [3.1.x] Fixed outdated notes in SchemaEditor docs.
Backport of 197b55c53469cf8344d1ba35175236780cb83bd1 from master
2020-10-20 09:49:39 +02:00
Mariusz Felisiak
d75cfe11e8 [3.1.x] Fixed typo in docs/ref/checks.txt.
Backport of b3b0be3df3108afe8522036cda2e589187c49e2e from master
2020-10-19 19:23:25 +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
Jacob Walls
18ffdf5c87 [3.1.x] Fixed typo in docs/topics/testing/tools.txt.
Backport of 4e4db426c5b0a18d1fd4dac6fc1342ab7762b288 from master
2020-10-18 19:51:56 +02:00
Claude Paroz
8caf524a1d [3.1.x] Fixed #32110 -- Doc'd and tested enumerations for ChoiceField.choices.
Backport of 7f85498eef1d8fcc52e4fb70df8041f5452d405a from master
2020-10-17 21:01:54 +02:00
Mariusz Felisiak
be3ce38656 [3.1.x] Refs #32096 -- Made JSONField check respect Meta.required_db_vendor.
Thanks Simon Charette for the implementation idea.
Backport of 1fb97fb965786a4398a2236e4e619b78a25d5875 from master
2020-10-15 22:06:33 +02:00
Carlton Gibson
848e48c62d [3.1.x] Fixed #29988 -- Updated coding style to allow f-strings.
Thanks to Nick Pope for review.

Backport of 411cc0ae18aa9c64447eed229e65e092d23f80e6 from master
2020-10-15 10:10:49 +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
735c88fdd7 [3.1.x] Refs #32096 -- Added test for ArrayAgg over JSONField key transforms.
Backport of 1d650ad019c1ab8e73d1e5b2587bb232c8ab35b6 from master
2020-10-14 20:57:03 +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
shivam sharma
b7d58dd5df [3.1.x] Fixed typo in docs/topics/i18n/translation.txt.
Backport of c9f12f149f4c42aa34b3cbea17e964dfbf942cfb from master
2020-10-13 08:32:56 +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
Paul Grau
b0e5e7b671 [3.1.x] Fixed #29356 -- Clarified docs for QueryDict.getlist() default.
Backport of 855fc06236630464055b4f9ea422c68a07c6d02a from master
2020-10-08 14:20:38 +02:00
Carlton Gibson
d1f791d394 [3.1.x] Fixed #32083 -- Added link back to migrating section in multi-db docs example.
Backport of 1b32b2f614c5c45f4a0f270ae7273c2d8e16617b from master
2020-10-08 12:46:05 +02:00
Jacob Walls
82bdc51e7a [3.1.x] Fixed #23681, Fixed #27445 -- Doc'd setting choices for NullBooleanField widgets.
Thanks to David Smith for investigation and review.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of d976c254fc76e5f04d81dfd9d142c58e933c9c92 from master
2020-10-08 12:39:54 +02:00
Carlton Gibson
1f8dbc8fa9 [3.1.x] Fixed #32065 -- Restored leading dot to CSRF_COOKIE_DOMAIN examples.
Partially reverts afd375fc343baa46e61036087bc43b3d096bb0ca.

Thanks to Tim Graham for review.

Backport of 3d4ffd1ff0eb9343ee41de77caf6ae427b6e873c from master
2020-10-07 10:04:24 +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
322f0f7012 [3.1.x] Skipped GetImageDimensionsTests.test_webp when WEBP is not installed.
Backport of fce389af7cf95151118c9fc7cafd777a31f94946 from master
2020-10-06 11:26:30 +02:00
Peter Marheine
1c7799dbf7 [3.1.x] Fixed #32041 -- Doc'd how to modify served files' content types on Windows.
Backport of f87b0ecd37e64e7a019d472de37d0789a8790f1f from master
2020-10-01 14:02:31 +02:00
MAHANTH-wq
6b17d13f26 [3.1.x] Fixed #32057 -- Doc'd HttpResponse.get()/items().
Backport of 0da212ffbf5f22cfb1ad1f11bc30a45cee2fce82 from master
2020-10-01 11:00:32 +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
c912356264 [3.1.x] Post-release version bump. 2020-10-01 07:39:36 +02:00
Mariusz Felisiak
970729693a [3.1.x] Bumped version for 3.1.2 release. 3.1.2 2020-10-01 07:26:07 +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
Claude Paroz
f7397bb7c8 [3.1.x] Updated translations from Transifex. 2020-09-30 09:53:06 +02:00
David Smith
12ba61ed17 [3.1.x] Bumped minimum isort version to 5.1.0.
Fixed inner imports per isort 5.
isort 5.0.0 to 5.1.0 was unstable.

Backport of e74b3d724e5ddfef96d1d66bd1c58e7aae26fc85 from master
2020-09-30 09:51:31 +02:00