30201 Commits

Author SHA1 Message Date
Mariusz Felisiak
0da90533f2 [4.0.x] Updated various links to HTTPS and new locations.
Backport of 010a9d8a4f45252b908337988690c3fad138e334 from main
2022-03-29 07:46:55 +02:00
Sih Sîng-hông薛丞宏
7f69c0d9f7 [4.0.x] Corrected models.FileField signature in docs.
Backport of d4bf3b4c75c0e1229062ad4c937725931f699fb7 from main
2022-03-28 20:29:53 +02:00
Mariusz Felisiak
efb26f1b8d [4.0.x] Reverted "Fixed forms_tests.tests.test_renderers with Jinja 3.1.0+."
This reverts commit 1d9d082acf6e152c06833bb9698f88d688b95e40.
Backport of abfdb4d7f384fb06ed9b7ca37b548542df7b5dda from main
2022-03-26 12:28:33 +01:00
Mariusz Felisiak
6a80fd1465 [4.0.x] Fixed forms_tests.tests.test_renderers with Jinja 3.1.0+.
See https://github.com/pallets/jinja/pull/1621.
Backport of 1d9d082acf6e152c06833bb9698f88d688b95e40 from main
2022-03-25 08:49:57 +01:00
Samuel Hartmann
280661bf35 [4.0.x] Fixed #33544 -- Expanded the TEMPLATES section of the Deployment checklist.
Clarified that the cached template loader is enabled by default when
DEBUG = False.

Backport of 5cc9464e4d8fe2762e462560665fd1f28104bbca from main
2022-03-22 12:38:19 +01:00
Carlton Gibson
c0a34befea [4.0.x] Fixed #33585 -- Made example git repo URLs use HTTPS protocol.
The SSH-based checkout requires additional configuration, which is
beneficial to defer for new contributors.

Follow up to 3c6a4fdb6d828a03e368632d88f8261cc30104da. This commit
updates the remaining examples.
Backport of 9fed515a251d488172feb1652bb5179344364fb3 from main
2022-03-22 12:12:47 +01:00
Mariusz Felisiak
fa76f6b83d [4.0.x] Refs #31676 -- Used term "merger" instead of "committer" in docs.
Follow up to caa2dd08c4722c8702588f5dfe1fa4c506aa66fc.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of 653daaa60cf4de7071136541169285ed3d71974d from main
2022-03-22 11:14:07 +01:00
Mariusz Felisiak
8761407a8f [4.0.x] Renamed Jenkins wiki page to CI.
Jenkins is no longer the only CI tool.
Backport of b07ee98b27e58992fdc10fec0ec67e68ae1d272d from main
2022-03-19 15:42:10 +01:00
Mariusz Felisiak
1af06ffaa5 [4.0.x] Added missing backticks to function names.
Backport of 39ae8d740e30c18e46873cf82aff76588f1974c7 from main
2022-03-17 11:10:49 +01:00
tommcn
de5a453d51 [4.0.x] Corrected CSRF reference in middleware docs.
Backport of 8e633906403853868bcd7df62ba30a86151a944d from main
2022-03-17 07:34:36 +01:00
David Sanders
b8f7c84922 [4.0.x] Corrected AppConfig.get_models() signature in docs.
Backport of 7c56fc8e91ef34d81cba16eaaa610575667dd2a7 from main
2022-03-14 06:56:05 +01:00
Carlton Gibson
d8b437b1fb [4.0.x] Added stub release notes for Django 4.0.4.
Backport of 9652a118ce8c1cbe1f7cf7a4423adb7c5c50757d from main
2022-03-01 09:59:18 +01:00
Carlton Gibson
1388cb06bc [4.0.x] Post-release version bump. 2022-03-01 09:55:08 +01:00
Carlton Gibson
a3a5fbdf84 [4.0.x] Bumped version for 4.0.3 release. 4.0.3 2022-03-01 09:37:00 +01:00
Carlton Gibson
c33413589d [4.0.x] Updated release date for version 4.0.3.
Backport of 47143e27d4402b62068bf9eb84aa6dd93d3d4678 from main
2022-03-01 09:33:34 +01:00
Mariusz Felisiak
82f25266bf [4.0.x] Fixed #33547 -- Fixed error when rendering invalid inlines with readonly fields in admin.
Regression in de95c826673be9ea519acc86fd898631d1a11356.

Thanks David Glenck for the report.
Backport of 445b075def2c037b971518963b70ce13df5e88a2 from main
2022-03-01 08:10:35 +01:00
Vaarun Sinha
be4a106930 [4.0.x] Refs #33476 -- Mentioned black in docs about pre-commit checks.
Backport of fe3518d25edd69b782339729080b0295a8a33952 from main
2022-02-21 07:53:22 +01:00
Andrey Otto
89befae7b5 [4.0.x] Fixed #33530 -- Fixed typo in docs/ref/templates/builtins.txt.
Backport of f70a875cc05c46b3bfcc1637356081f0c5782bea from main
2022-02-21 06:13:59 +01:00
Philipp Bosch
75872476ec [4.0.x] Fixed typo in docs/topics/i18n/translation.txt.
Backport of 737542390af27616d93f86cd418e2d7f3e874b27 from main
2022-02-18 13:04:02 +01:00
Mariusz Felisiak
760b7e7f4f [4.0.x] Fixed #33515 -- Prevented recreation of migration for ManyToManyField to lowercased swappable setting.
Thanks Chris Lee for the report.

Regression in 43289707809c814a70f0db38ca4f82f35f43dbfd.

Refs #23916.
Backport of 1e2e1be02bdf0fe4add0d0279dbca1d74ae28ad7 from main
2022-02-16 21:10:30 +01:00
Claude Paroz
11881ad69f [4.0.x] Refs #32074 -- Recommended aiosmtpd for minimal SMTP server.
Follow up to 569a33579c3cca5f801c544d9b52a34e3c779424.
Backport of 5d13cc540e29eedafe695338d8ec9ec500185ccd from main
2022-02-12 19:33:55 +01:00
Mariusz Felisiak
f2d3e1fc8c [4.0.x] Refs #33476 -- Ignored formatting changes in git blame. 2022-02-09 07:32:16 +01:00
Mariusz Felisiak
3278c31fa5 [4.0.x] Refs #33476 -- Refactored code to strictly match 88 characters line length.
Backport of 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 from main.
2022-02-08 19:25:02 +01:00
django-bot
6a682b38e7 [4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
2022-02-08 12:15:38 +01:00
Mariusz Felisiak
e73ce08888 [4.0.x] Refs #33476 -- Changed quotation marks in DebugViewTests.test_template_exceptions().
This prevents a failure after reformatting the code with Black.

Backport of f68fa8b45dfac545cfc4111d4e52804c86db68d3 from main
2022-02-08 12:02:37 +01:00
Carlton Gibson
224c64a733 [4.0.x] Refs #33476 -- Added GitHub action to run black linter.
Backport of cf5e61cf6c721121abf7347baff3d41a0ad3c23e from main
2022-02-08 12:02:14 +01:00
Carlton Gibson
9a7755fa2d [4.0.x] Refs #33476 -- Adjusted docs and config files for Black.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of ba94488196a74e312177ef2621fbd427956836ef from main
2022-02-08 12:01:30 +01:00
John Hollingsworth
8c407ee7f3 [4.0.x] Fixed #32518 -- Doc'd that QuerySet.contains() should not be overused.
Thanks Tim McCurrach for the idea.

Backport of d70b4bea18c96e518ce14dca96085e9265e8ebb6 from main
2022-02-08 08:33:24 +01:00
Grace Hawkins
3714b44142 [4.0.x] Refs #32243 -- Fixed typo in docs/topics/files.txt.
Backport of 25514b604a64686ba603bf10a8a63390dc38b79d from main
2022-02-05 11:19:53 +01:00
Mariusz Felisiak
d55a1e5809 [4.0.x] Refs #33476 -- Refactored problematic code before reformatting by Black.
In these cases Black produces unexpected results, e.g.

def make_random_password(
    self,
    length=10,
    allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):

or

cursor.execute("""
SELECT ...
""",
    [table name],
)

Backport of c5cd8783825b5f6384417dac5f3889b4210b7d08 from main.
2022-02-03 11:38:46 +01:00
Joshua Massover
76c80d96f3 [4.0.x] Fixed #32243 -- Added docs examples for manually saving Files.
Backport of c9d6e3595cfd0aa58cde1656bd735ecfcd7a872b from main
2022-02-03 09:58:08 +01:00
Mike Lissner
62fe7e08d6 [4.0.x] Improved example of using a custom queryset in Model formsets docs.
Backport of e459b0f5a0b2bfbc2ac45b3e7f21047ec9e4f345 from main
2022-02-03 06:58:51 +01:00
Theofilos Alexiou
efe72cf128 [4.0.x] Added Redis to warning about using cached sessions in docs.
Backport of 3ba60951fcbc8fca3e71d3b78083b100491fa7f9 from main
2022-02-02 20:46:44 +01:00
David Smith
7043f9ab3f [4.0.x] Fixed typo in release notes.
Backport of 770d3e6a4ce8e0a91a9e27156036c1985e74d4a3 from main
2022-02-02 07:18:43 +01:00
Mariusz Felisiak
0c06819caa [4.0.x] Refs #33476 -- Used vertical hanging indentation for format lists with inline comments.
Lists with multiple values and comments per-line are reformatted
by Black to multiple lines with a single comment. For example:

DATE_INPUT_FORMATS =
    "%Y-%m-%d", "%m/%d/%Y", "%m/%d/%y",  # '2006-10-25', '10/25/2006', '10/25/06'
]

is reformatted to the:

DATE_INPUT_FORMATS =
    "%Y-%m-%d",
    "%m/%d/%Y",
    "%m/%d/%y",  # '2006-10-25', '10/25/2006', '10/25/06'
]

This reformats affected entries to multiple lines with corresponding
comments.

Backport of ca88caa1031c0de545d82de8d90dcae0e03651fb from main
2022-02-01 15:14:17 +01:00
Mariusz Felisiak
1c74ac8648 [4.0.x] Added stub release notes for 4.0.3.
Backport of ba4a6880d1783190de4081bd456d934beb45cb19 from main
2022-02-01 09:12:57 +01:00
Mariusz Felisiak
69dfc6e61a [4.0.x] Added CVE-2022-22818 and CVE-2022-23833 to security archive.
Backport of 9e0df0d6dde441dbbad2b548d777e0a01d633286 from main
2022-02-01 08:53:10 +01:00
Mariusz Felisiak
3cb9025d65 [4.0.x] Post-release version bump. 2022-02-01 08:02:32 +01:00
Mariusz Felisiak
b12be7ad6b [4.0.x] Bumped version for 4.0.2 release. 4.0.2 2022-02-01 07:59:05 +01:00
Mariusz Felisiak
f9c7d48fdd [4.0.x] Fixed CVE-2022-23833 -- Fixed DoS possiblity in file uploads.
Thanks Alan Ryan for the report and initial patch.

Backport of fc18f36c4ab94399366ca2f2007b3692559a6f23 from main.
2022-02-01 07:44:49 +01:00
Markus Holtermann
0142204606 [4.0.x] Fixed CVE-2022-22818 -- Fixed possible XSS via {% debug %} template tag.
Thanks Keryn Knight for the report.

Backport of 394517f07886495efcf79f95c7ee402a9437bd68 from main.

Co-authored-by: Adam Johnson <me@adamj.eu>
2022-02-01 07:43:45 +01:00
Kirill Safronov
6928227dff [4.0.x] Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model.
Regression in aa4acc164d1247c0de515c959f7b09648b57dc42.

Backport of 97a72744681d0993b50dee952cf32cdf9650ad9f from main
2022-02-01 07:33:22 +01:00
Mariusz Felisiak
aff79be03a [4.0.x] Fixed #33468 -- Fixed QuerySet.aggregate() after annotate() crash on aggregates with default.
Thanks Adam Johnson for the report.
Backport of 71e7c8e73712419626f1c2b6ec036e8559a2d667 from main
2022-01-31 11:34:29 +01:00
Claude Paroz
7a1c6533eb
[4.0.x] Updated translations from Transifex.
Updated Bulgarian, Czech, German, Uzbek, and Vietnamese translations.
2022-01-29 18:59:17 +01:00
Thomas Aglassinger
9a9c5b402b [4.0.x] Fixed #33459 -- Clarified index type in full text search docs.
Backport of 3a9b8b25d48c5768633e73edc5ddca20c3fd716c from main
2022-01-28 06:37:14 +01:00
Mariusz Felisiak
7c2d4d943b [4.0.x] Fixed #33462 -- Fixed migration crash when altering type of primary key with MTI and foreign key.
This prevents duplicated operations when altering type of primary key
with MTI and foreign key. Previously, a foreign key to the base model
was added twice, once directly and once by the inheritance model.

Thanks bcail for the report.

Regression in 325d7710ce9f6155bb55610ad6b4580d31263557.
Backport of e972620ada4f9ed7bc57f28e133e85c85b0a7b20 from main
2022-01-27 18:52:35 +01:00
Kaushik Chintam
f4de87038e [4.0.x] Fixed #33048 -- Doc'd that DEBUG static files requests don't use middleware chain.
Backport of 1625a8c8eba0b00ebdd1d7a8ba697b2729ec40ed from main
2022-01-26 12:02:43 +01:00
Carlton Gibson
f82ca84f77 [4.0.x] Fixed #33407 -- Fixed .radiolist admin CSS.
Regression in 5942ab5eb165ee2e759174e297148a40dd855920.

Backport of 85f2a9fb0f0973930abc84a725bc30703aa3d98b from main
2022-01-26 10:04:08 +01:00
Mariusz Felisiak
c28a41f4f1 [4.0.x] Added stub release notes and release date for 4.0.2, 3.2.12, and 2.2.27.
Backport of eeca9342381c8583be16f18942774e785ab7e527 from main
2022-01-25 07:26:37 +01:00
Fabian Büchler
b32080219e [4.0.x] Fixed #33449 -- Fixed makemigrations crash on models without Meta.order_with_respect_to but with _order field.
Regression in aa4acc164d1247c0de515c959f7b09648b57dc42.

Backport of eeff1787b0aa23016e4844c0f537d5093a95a356 from main
2022-01-21 08:46:14 +01:00