1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00
Commit Graph

33526 Commits

Author SHA1 Message Date
okaybro
81625a141e [5.2.x] Fixed #36587 -- Clarified usage of list.insert() for upload handlers.
Thanks Baptiste Mispelon for the report

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of afe6634146 from main.
2025-09-29 14:51:44 +02:00
Samriddha9619
6f3813e4b6 [5.2.x] Fixed #35877, Refs #36128 -- Documented unique constraint when migrating a m2m field to use a through model.
Backport of daba609a9b from main.
2025-09-29 09:00:19 +02:00
Mariusz Felisiak
10a2d3b837 [5.2.x] Added stub release notes and release date for 5.2.7, 5.1.13, and 4.2.25.
Backport of 00174507f8 from main.
2025-09-24 11:41:04 -04:00
Jacob Walls
b2773a39a3 [5.2.x] Refs #25508 -- Used QuerySet.__repr__ in docs/ref/contrib/postgres/search.txt.
Backport of efb96138b4 from main.
2025-09-23 10:09:18 -04:00
CodingWithSaksham
7554c54e5f [5.2.x] Fixed #36581 -- Updated serialization examples from XML to JSON.
Backport of 762d3be8c5 from main.
2025-09-18 15:47:20 +02:00
Natalia
2a2936c3e6 [5.2.x] Updated translations from Transifex. 2025-09-18 09:50:46 -03:00
David Smith
5484d1f2b0 [5.2.x] Fixed OGRInspectTest.test_time_field with memory Spatialite database.
Backport of 82b3b84a78 from main.
2025-09-18 09:35:32 -03:00
antoliny0919
d8e9dec1ad [5.2.x] Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
Regression in a0f50c2a48.

Backport of 1e7728888d from main.
2025-09-17 10:01:37 +02:00
Jacob Walls
1dbf415a18 [5.2.x] Fixed typo in docs/ref/contrib/contenttypes.txt.
Backport of c48904a225 from main.
2025-09-13 11:29:40 -04:00
Mridul Dhall
b8df1eb7c2 [5.2.x] Fixed #36597 -- Corrected directives for functions from email module in docs.
Thanks Mike Edmunds for the report.

Backport of e183d6c26c from main.
2025-09-12 18:59:58 +02:00
Salman
adc80dd81e [5.2.x] Fixed #36486 -- Added MongoDB to list of third-party DB backends.
Backport of 46fdeb1373 from main
2025-09-09 08:24:11 +02:00
Jake Howard
fbced43cf8 [5.2.x] Refs #36588 -- Warned about using external templates in startapp/startproject commands.
Clarified that custom templates provided via `--template` for `starapp`
and `startproject` are used as-is, adding a warning that malicious or
poorly constructed templates may introduce security issues.

Backport of 4e7a991c12 from main.
2025-09-04 13:38:31 -03:00
Mariusz Felisiak
e2d83a2076 [5.2.x] Added missing backticks in docs/releases/security.txt.
Backport of 686a8a62ae from main
2025-09-04 11:10:33 +02:00
Sarah Boyce
18c6bc5db2 [5.2.x] Added CVE-2025-57833 to security archive.
Backport of f0c05a40d2 from main.
2025-09-03 15:28:27 +02:00
Sarah Boyce
db13f7fbcb [5.2.x] Added stub release notes for 5.2.7.
Backport of ab7c7dd99b from main.
2025-09-03 15:22:02 +02:00
Sarah Boyce
90a9ba1aec [5.2.x] Post-release version bump. 2025-09-03 13:29:20 +02:00
Sarah Boyce
75c4403f07 [5.2.x] Bumped version for 5.2.6 release. 5.2.6 2025-09-03 13:17:48 +02:00
Jake Howard
4c044fcc86 [5.2.x] Fixed CVE-2025-57833 -- Protected FilteredRelation against SQL injection in column aliases.
Thanks Eyal Gabay (EyalSec) for the report.

Backport of 5171171709 from main.
2025-09-03 13:15:55 +02:00
Sarah Boyce
e87ca3d6fa [5.2.x] Made cosmetic edits to 5.2.6 release notes.
Backport of d044e25dc2 from main.
2025-09-03 12:19:46 +02:00
Clifford Gama
ebec2c9323 [5.2.x] Removed unused import in docs/ref/models/expressions.txt example.
Backport of 21603c5b50 from main
2025-08-31 08:16:09 +02:00
SaJH
ace59cb83b [5.2.x] Fixed #36431 -- Returned tuples for multi-column ForeignObject in values()/values_list().
Thanks Jacob Walls and Simon Charette for tests.

Signed-off-by: SaJH <wogur981208@gmail.com>

Backport of bb7a7701b1 from main
2025-08-29 15:36:09 -04:00
Mustafa Pirbhai
16a12a9799 [5.2.x] Fixed #35831 -- Documented the model form meta API in model form reference docs.
Co-authored-by: Jonathan <3218047+jernwerber@users.noreply.github.com>
Co-authored-by: Mustafa <117516335+mspirbhai@users.noreply.github.com>

Backport of 183fcebf88 from main.
2025-08-29 09:00:37 +02:00
Sarah Boyce
51753bc809 [5.2.x] Added stub release notes and release date for 5.2.6, 5.1.12, and 4.2.24.
Backport of 4c71e33440 from main.
2025-08-27 16:07:46 +02:00
Jacob Walls
a486455125 [5.2.x] Corrected definition of "needsinfo" triage stage in contributing guide.
Backport of 66082a7dac from main
2025-08-27 09:22:26 -04:00
Jacob Walls
f8e572e843 [5.2.x] Removed reference to flake8 file exclusions.
Obsolete since 41384812ef.
(six was removed in 9285926295fbfc86b70e7be8d595d4cfbe7895b8.)
Backport of 165ad74c57 from main
2025-08-23 20:06:54 +02:00
Mariusz Felisiak
9c9ed6fd7a [5.2.x] Refs #35530 -- Corrected deprecation message in auth.alogin().
Follow up to ceecd518b1.

Backport of b3166e1e15 from main.
2025-08-22 16:15:42 +02:00
Mariusz Felisiak
98972b53aa [5.2.x] Corrected release notes of calling format_html() without arguments.
Backport of bcddf641ae from main
2025-08-20 07:35:30 +02:00
mengxun
38844c348b [5.2.x] Fixed spelling of "logged-in" when used as an adjective in docs.
Backport of f5c944b314 from main.
2025-08-19 12:43:52 -03:00
Natalia
9a720d5c50 [5.2.x] Fixed #36499 -- Adjusted utils_tests.test_html.TestUtilsHtml.test_strip_tags following Python's HTMLParser new behavior.
Python fixed a quadratic complexity processing for HTMLParser in:
https://github.com/python/cpython/commit/6eb6c5db.

Backport of 2980627502 from main.
2025-08-13 17:48:37 -03:00
Natalia
74fafe2715 [5.2.x] Fixed test_utils.tests.HTMLEqualTests.test_parsing_errors following Python's HTMLParser fixed parsing.
Further details about Python changes can be found in:
0243f97cba.

Refs #36499. Thank you Clifford Gama for the thorough review!

Backport of e4515dad7a from main.
2025-08-13 17:48:37 -03:00
Jacob Walls
a4e27c0c6b [5.2.x] Refs #34378, #36143, #36416 -- Fixed isolation of LookupTests.test_in_bulk_preserve_ordering_with_batch_size().
`max_query_params` is a property, so it must be patched on the class.

Backport of a68e8565cd from main.
2025-08-13 15:30:34 -03:00
David Sanders
4926591343 [5.2.x] Aligned format of constraint examples in docs/ref/models/constraints.txt.
Backport of fda3c1712a from main.
2025-08-13 09:16:06 +02:00
Rohit
1d9f6c3270 [5.2.x] Corrected code examples in topics docs.
Backport of fa804d0d14 from main.
2025-08-11 10:14:43 +02:00
Sarah Boyce
ad836aa0c5 [5.2.x] Added stub release notes for 5.2.6.
Backport of 0bff53b413 from main.
2025-08-06 10:36:46 +02:00
Sarah Boyce
a7546c4773 [5.2.x] Post-release version bump. 2025-08-06 10:35:14 +02:00
Sarah Boyce
a3b1107a49 [5.2.x] Bumped version for 5.2.5 release. 5.2.5 2025-08-06 10:04:41 +02:00
Sarah Boyce
0489f54e8b [5.2.x] Added release date for 5.2.5.
Backport of 8999b0e2bf from main.
2025-08-06 09:59:50 +02:00
David Smith
a9c7d4b703 [5.2.x] Refs #36485 -- Grouped docs checks under a unified make check target.
Added a new 'check' rule to the docs Makefile which runs both the black
and spelling checks.

Backport of 7f9bf357fe from main.
2025-08-05 12:20:13 -03:00
David Smith
5ad6d43cd9 [5.2.x] Refs #34140 -- Added dedicated code block formatting section in docs/internals/contributing/writing-documentation.txt.
Backport of cba7328196 from main.
2025-08-05 12:20:04 -03:00
jkhall81
bdc3f9e350 [5.2.x] Fixed #36530 -- Extended fields.E347 to check for ManyToManyField involving CompositePrimaryKey on either side.
Thanks to Jacob Walls for the report.

Backport of 2013092b69 from main.
2025-08-05 08:46:56 -03:00
Natalia
f01ceae477 [5.2.x] Fixed #36535 -- Ensured compatibility with docutils 0.19 through 0.22.
Regression in 65ab92f6a8.

Backport of 9cec8d9f55 from main.
2025-08-04 21:53:33 -03:00
Adam Zapletal
5ca58ce3d0 [5.2.x] Corrected assertNumQueries() example in docs/topics/testing/tools.txt.
Backport of dca8284a37 from main.
2025-08-04 15:08:53 +02:00
Simon Charette
b3bb7230e1 [5.2.x] Fixed #34871, #36518 -- Implemented unresolved lookups expression replacement.
This allows the proper resolving of lookups when performing constraint
validation involving Q and Case objects.

Thanks Andrew Roberts for the report and Sarah for the tests and review.

Backport of 079d31e698 from main.
2025-08-04 09:42:32 +02:00
Simon Charette
e5ccb69bc3 [5.2.x] Fixed #36198 -- Implemented unresolved transform expression replacement.
This allows the proper resolving of F("field__transform") when
performing constraint validation.

Thanks Tom Hall for the report and Sarah for the test.

Prerequisite for #36518.

Backport of fc30355107 from main.
2025-08-04 09:41:29 +02:00
Mariusz Felisiak
5aefd005fc [5.2.x] Fixed writer_name deprecation warning in docutils 0.22+.
Backport of 65ab92f6a8 from main.
2025-07-29 21:50:54 -03:00
Simon Charette
3031c512f0 [5.2.x] Fixed #36522 -- Added support for filtering composite pks using a tuple of expressions.
Thanks Jacob Walls for the report, and Sarah Boyce and Mariusz Felisiak
for reviews.

Backport of 0a4999b422 from main.
2025-07-28 16:40:08 -03:00
Jordan Bae
28f33f50b2 [5.2.x] Moved manual testing instructions from intro to submitting patches docs.
The section on manual testing, including how to use a local checkout of
Django, is moved from the contribution intro to the submitting patches
docs. This makes it easier for reviewers and authors to follow best
practices.

Backport of fdeca38072 from main.
2025-07-28 09:02:15 -03:00
Mike Edmunds
c1356333b6 [5.2.x] Fixed typo in docs/topics/email.txt.
Backport of f551aeb003 from main.
2025-07-25 13:32:23 +02:00
Thibaud Colas
6e71386118 [5.2.x] Added accessibility guidelines for contributors.
Backport of 5527df9192 from main.
2025-07-23 16:42:23 +02:00
Mike Edmunds
6966adc519 [5.2.x] Fixed get_connection() signature in docs/topics/email.txt.
django.core.mail.get_connection() has always supported only variable
keyword arguments (never variable positional arguments).

Backport of 5289ce65b9 from main.
2025-07-17 14:02:01 -03:00