Commit graph

33987 commits

Author SHA1 Message Date
Jacob Walls
cf4e036bde [6.0.x] Refs #35535 -- Used intended decorator in test_simple_block_tag_parens().
Backport of e94b19f6ab from main.
2025-12-01 08:39:10 -05:00
Rida Zouga
9cfdab2e8d [6.0.x] Added link to Python Pickle documentation in docs/topics/cache.txt.
Co-authored-by: Rida Zouga <ridazouga@gmail.com>
Backport of 3ea0195ca5 from main
2025-11-30 08:30:30 +01:00
Bruno Alla
d17e646fe5 [6.0.x] Fixed outdated redis-py link in cache docs.
Backport of 7b32485ee9 from main
2025-11-27 17:12:41 +01:00
Tim Schilling
cf2d05ba1e [6.0.x] Highlighted community package upgrade utilities in docs/howto/upgrade-version.txt.
Backport of bd7940982d from main.
2025-11-27 09:32:47 -03:00
Natalia
4b8563e9f6 [6.0.x] Included usage of new scripts in docs/internals/howto-release-django.txt.
Backport of 60b08ad5e1 from main.
2025-11-26 20:06:48 -03:00
Natalia
9f07cfb88c [6.0.x] Added script to archive EOL stable branches.
This also fixed a small bash issue in `confirm_release.sh` script.

Backport of 532c1058a7 from main.
2025-11-26 20:06:31 -03:00
Natalia
1f349005f8 [6.0.x] Refs #36743 -- Added missing release notes for 5.1.15 and 4.2.27.
The fix landed in a8cf8c292c will be
backported to 5.1 and 4.2 since the 2048 limit was rolled out as part of
the security release for CVE-2025-64458.

Backport of 18b13cf6c4 from main.
2025-11-26 20:00:26 -03:00
varunkasyap
ce7d65fc81 [6.0.x] Fixed #36743 -- Increased URL max length enforced in HttpResponseRedirectBase.
Refs CVE-2025-64458.

The previous limit of 2048 characters reused the URLValidator constant
and proved too restrictive for legitimate redirects to some third-party
services. This change introduces a separate `MAX_URL_REDIRECT_LENGTH`
constant (defaulting to 16384) and uses it in HttpResponseRedirectBase.

Thanks Jacob Walls for report and review.

Backport of a8cf8c292c from main.
2025-11-26 17:19:18 -03:00
Cha Hwa Young
122b2dc569 [6.0.x] Fixed #31506 -- Clarified that ExpressionWrapper does not perform database casts.
Added warning in DateField documentation about type differences when using
timedelta on PostgreSQL and MySQL. Mentioned Cast() and integer arithmetic
solutions.

Backport of 55af4749b9 from main.
2025-11-26 08:34:35 -05:00
Natalia
0868b7151a [6.0.x] Added timeout-minutes directive to all GitHub Actions workflows.
GitHub Actions defaults to a 360-minute (6-hour) timeout. We've had jobs
hang due to issues in the parallel test runner, causing them to run for
the full 6 hours. This wastes resources and negatively impacts CI
availability, so explicit timeouts have been added to prevent
long-running hangs.

Backport of e48527f91d from main.
2025-11-26 08:01:52 -05:00
Natalia
938de87854 [6.0.x] Added stub release notes and release date for 5.2.9, 5.1.15, and 4.2.27.
Backport of d62e811acf from main.
2025-11-25 15:14:15 -03:00
Jake Howard
e0f3e3ec94 [6.0.x] Corrected assertions for True/False results in tests/auth_tests/test_handlers.py.
Backport of d08ae991a8 from main.
2025-11-24 16:40:23 -03:00
Simon Charette
abce629946 [6.0.x] Fixed #36751 -- Fixed empty filtered aggregation crash over annotated queryset.
Regression in b8e5a8a9a2.

Refs #36404.

The replace_expressions method was innapropriately dealing with falsey
but not None source expressions causing them to also be potentially
evaluated when __bool__ was invoked (e.g. QuerySet.__bool__ evaluates
the queryset).

The changes introduced in b8e5a8a9a2, which were to deal with a similar
issue, surfaced the problem as aggregation over an annotated queryset
requires an inlining (or pushdown) of aggregate references which is
achieved through replace_expressions.

In cases where an empty Q object was provided as an aggregate filter,
such as when the admin facetting feature was used as reported, it would
wrongly be turned into None, instead of an empty WhereNode, causing a
crash at aggregate filter compilation.

Note that the crash signature differed depending on whether or not the
backend natively supports aggregate filtering
(supports_aggregate_filter_clause) as the fallback, which makes use
Case / When expressions, would result in a TypeError instead of a
NoneType AttributeError.

Thanks Rafael Urben for the report, Antoliny and Youngkwang Yang for
the triage.
Backport of 2a6e0bd72d from main
2025-11-24 12:15:08 +01:00
Jacob Walls
a9367c262f [6.0.x] Configured dangerous-triggers zizmor rule.
Backport of 846613e521 from main.
2025-11-21 14:37:40 -05:00
Jacob Walls
3a493d4545 [6.0.x] Addressed unpinned-uses zizmor finding.
Backport of 86b8058b40 from main.
2025-11-21 14:37:33 -05:00
Jacob Walls
bc33e240e1 [6.0.x] Simplified actions after applying zizmor auto-fixes.
Backport of 08f4901b3f from main.
2025-11-21 14:37:28 -05:00
Jacob Walls
e22a9332e3 [6.0.x] Applied auto-fixes from zizmor findings.
Backport of e8958c4690 from main.
2025-11-21 14:37:24 -05:00
Jacob Walls
abb9aab00e [6.0.x] Added GitHub Actions linter (zizmor).
At the direction of the Security Team. Thanks Markus Holtermann,
Jake Howard, and Natalia Bidart for reviews.

Backport of 09d4bf5cd9 from main.
2025-11-21 14:37:19 -05:00
Natalia
aa8cbe051d [6.0.x] Added scripts for building and releasing Django artifacts.
Backport of a523d5c833 from main.
2025-11-21 15:37:36 -03:00
Natalia
ab8ba62dbb [6.0.x] Skipped scripts/ folder from built release artifacts.
Backport of 971c76f735 from main.
2025-11-21 15:37:36 -03:00
Jacob Walls
2f77776f00 [6.0.x] Added missing ticket links in docs/releases/5.2.8.txt.
Backport of 8ce3e1f9d0 from main.
2025-11-20 17:32:01 -05:00
Chris Wesseling
161e543485 [6.0.x] Fixed #36748 -- Filtered non-standard placeholders from UNNEST queries.
Backport of 5834643f43 from main.
2025-11-20 17:23:30 -05:00
nessita
b72ee77f6b [6.0.x] Ensured that Sitemap.items is described as a method in docs/ref/contrib/sitemaps.txt.
Backport of ee2e0e2028 from main.
2025-11-20 15:44:33 -03:00
Natalia
4413e15380 [6.0.x] Bumped version for 6.0 release candidate 1 release. 2025-11-19 11:47:00 -03:00
varunkasyap
ef4715ef69 [6.0.x] Fixed #36733 -- Escaped attributes in Stylesheet.__str__().
Thanks Mustafa Barakat for the report, Baptiste Mispelon for
the triage, and Jake Howard for the review.

Backport of e05f2a7569 from main.
2025-11-18 17:16:27 -05:00
Georgi Yanchev
569f455b58 [6.0.x] Fixed #36141 -- Checked for applied replaced migrations recursively.
Regression in 64b1ac7292.
Backport of b07298a73a from main.
2025-11-18 08:11:36 -05:00
Annabelle Wiegart
1e8d6a2e1d [6.0.x] Fixed #26379 -- Doc'd that the first filter() on a many-to-many relation is sticky.
Backport of 3c005b5f79 from main.
2025-11-17 15:15:41 -05:00
Kasyap Pentamaraju
37b5dced86 [6.0.x] Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries.
Backport of 7e765a6859 from main.
2025-11-13 11:19:05 -05:00
Adam Johnson
5ae8659cb5 [6.0.x] Fixed #36730 -- Fixed constraint validation crash for excluded FK attnames.
Regression in e44e8327d3.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of abfa4619fb from main
2025-11-13 10:04:40 +01:00
Clifford Gama
d6af15d44d [6.0.x] Fixed typo in docs/ref/databases.txt.
Backport of 2b0f24e622 from main.
2025-11-10 18:00:19 -03:00
Jacob Walls
a26b660cff Refs #36680 -- Avoided manipulating PATH in AdminScriptTestCase.
This mostly reverts 6436ec3210,
which was fragile. Instead, if black is present, we use it to format the
expected and actual results, instead of hard-coding the expected
formatted value.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-11-10 14:14:22 -05:00
Markus Holtermann
edacefdf2a [6.0.x] Fixed unsafe variable interpolation in GitHub Action workflow.
Thank you Davide Netti for the report and initial patch.

Co-authored-by: Davide Netti <davide.netti4@gmail.com>

Backport of 01c70ba148 from main.
2025-11-10 15:52:44 -03:00
Clifford Gama
37ab85dd8d [6.0.x] Clarified "get_db_prep_value" default result in docs/ref/models/fields.txt.
Backport of c135be349d from main.
2025-11-10 14:12:06 -03:00
Hong Xu
cdae630530 [6.0.x] Clarified EmailValidator docs to specify it validates an email address.
Updated the EmailValidator docs in docs/ref/validators.txt to explicitly
state that it validates an email address, to avoid confusion with
validating email message content.

Backport of a4f7674134 from main.
2025-11-10 12:52:53 -03:00
Tim Schilling
fb2fb2de4d [6.0.x] Removed community packages admonition from settings docs.
Backport of 5ef870fbc5 from main.
2025-11-06 15:52:36 -05:00
Tim Schilling
03f31bcddf [6.0.x] Added community package email backends mention to docs.
Co-authored-by: Clifford Gama <cliffygamy@gmail.com>

Backport of 47ac64ed8b from main.
2025-11-06 15:52:25 -05:00
Mehraz Hossain Rumman
ca82428442 [6.0.x] Fixed #36710 -- Fixed a regression in urlize for multipart domain names.
Thanks Mehraz Hossain Rumman for the report and Bruno Alla for the triage.

Regression in a9fe98d5bd.
Backport of 125b63ca74 from main.
2025-11-05 17:06:23 -05:00
Natalia
cdb93b7877 [6.0.x] Added CVE-2025-64458 and CVE-2025-64459 to security archive.
Backport of c5a107e824 from main.
2025-11-05 11:18:19 -03:00
Natalia
ef4e0bcdd5 [6.0.x] Added stub release notes for 5.2.9.
Backport of 6e18c078d5 from main.
2025-11-05 11:18:09 -03:00
Jacob Walls
a3f3a81f33 [6.0.x] Refs CVE-2025-64459 -- Avoided propagating invalid arguments to Q on dictionary expansion.
Backport of 3c3f463577 from main.
2025-11-05 09:30:12 -03:00
Jacob Walls
06dd38324a [6.0.x] Fixed CVE-2025-64459 -- Prevented SQL injections in Q/QuerySet via the _connector kwarg.
Thanks cyberstan for the report, Sarah Boyce, Adam Johnson, Simon
Charette, and Jake Howard for the reviews.

Backport of 98e642c691 from main.
2025-11-05 09:29:44 -03:00
Jacob Walls
6e13348436 [6.0.x] Fixed CVE-2025-64458 -- Mitigated potential DoS in HttpResponseRedirect/HttpResponsePermanentRedirect on Windows.
Thanks Seokchan Yoon for the report, Markus Holtermann for the
triage, and Jake Howard for the review.

Follow-up to CVE-2025-27556 and 39e2297210.

Backport of c880530ddd from main.
2025-11-05 09:28:56 -03:00
Hal Blackburn
12042b8978 [6.0.x] Fixed #36704 -- Fixed system check error for proxy model with a composite pk.
Proxy models subclassing a model with a CompositePrimaryKey were
incorrectly reporting check errors because the check that requires only
local fields to be used in a composite pk was evaluated against the proxy
subclass, which has no fields.

To fix this, composite pk field checks are not evaluated against
proxy subclasses, as none of the checks are applicable to proxy
subclasses. This also has the benefit of not double-reporting real check
errors from an invalid superclass pk.

Thanks Clifford Gama for the review.

Backport of 74564946c3 from main.
2025-11-04 11:59:49 -05:00
ontowhee
1b9f7a1ddf [6.0.x] Updated ticket triage process diagram and contributing docs.
Backport of eaf7b563a5 from main.
2025-11-04 09:40:43 -03:00
Patrick Rauscher
953d31028a [6.0.x] Fixed #36696 -- Fixed NameError when inspecting functions with deferred annotations.
In Python 3.14, annotations are deferred by default, so we should not
assume that the names in them have been imported unconditionally.

Backport of 6019147229 from main.
2025-10-31 08:45:13 -04:00
Tim Schilling
a36108094d [6.0.x] Added community package storage backends mention to docs.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>

Backport of 340e4f832e from main.
2025-10-30 17:22:24 -04:00
Mariusz Felisiak
11cfb573d2 [6.0.x] Refs #36680 -- Fixed admin_scripts tests crash when black is not installed.
Regression in 6436ec3210.
Backport of 3939cd2795 from main.
2025-10-30 08:41:02 -03:00
Mariusz Felisiak
e217139f53 [6.0.x] Fixed #36596 -- Made parallel test runner respect django_test_skips and django_test_expected_failures.
Backport of 9ba3f74a46 from main.
2025-10-29 17:59:49 -03:00
Jacob Walls
32ef95796a [6.0.x] Fixed #36680 -- Parametrized formatter discovery in AdminScriptTestCase.
Backport of 6436ec3210 from main.
2025-10-29 17:57:05 -03:00
Mariusz Felisiak
db922c885c [6.0.x] Fixed parameter names in in "New contributor" GitHub action.
Follow up to 407ab79357.

Backport of 37df013195 from main.
2025-10-29 17:07:33 -03:00