34276 Commits

Author SHA1 Message Date
Natalia
d62e811acf Added stub release notes and release date for 5.2.9, 5.1.15, and 4.2.27. 2025-11-25 15:13:36 -03:00
Mariusz Felisiak
70e93bc17b Fixed #36756 -- Dropped support for GDAL 3.1 and 3.2. 2025-11-25 11:21:13 +01:00
David Smith
d86802f13f Fixed #35783 -- Added NumDimensions GIS database function and __num_dimensions lookup. 2025-11-25 10:10:06 +01:00
Tim Graham
e3d8f557ff Refs #21961 -- Added required_db_features to delete's RelatedDbOptionParent. 2025-11-25 09:03:17 +01:00
Varun Kasyap Pentamaraju
fab1f25d4e Fixed #36738 -- Confirmed support for GDAL 3.12.
Thanks David Smith for reviews.
2025-11-24 22:02:25 +01:00
Jake Howard
d08ae991a8 Corrected assertions for True/False results in tests/auth_tests/test_handlers.py. 2025-11-24 16:39:27 -03:00
Simon Charette
2a6e0bd72d 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.
2025-11-24 12:14:38 +01:00
Tim Graham
57c50d8c19 Refs #21961 -- Added DatabaseFeatures.supports_on_delete_db_(cascade/null) feature flags.
Needed on MongoDB.

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-11-23 11:53:24 +01:00
Jacob Walls
ec60df6d1e Removed outdated build guidance in release docs.
Follow-up to 4686541691.
2025-11-22 11:06:51 -05:00
David Smith
789b075447 Fixed #35774 -- Dropped support for GEOS 3.8.
GEOS 3.8 (released Oct-2019) will be more than 5 years old when
Django 6.1 is released (Aug-2026).
2025-11-22 12:20:00 +01:00
Skyiesac
e303889799 Fixed #36256 -- Removed unnecessary titles from admin UI elements.
Thanks Eliana Rosselli and the Accessibility Team for the recommendation.
2025-11-21 17:15:39 -05:00
VIZZARD-X
11f9fae0b7 Fixed #36741 -- Linked to custom save()/delete() caveats in docs/ref/models/querysets.txt. 2025-11-21 17:06:17 -05:00
saurabh
a89183e638 Fixed #36620 -- Added coverage workflow to summarize coverage in pull requests.
Part of GSoC 2025. Thanks Lily for mentorship, and Sarah Boyce and
Jacob Walls for reviews.
2025-11-21 16:26:57 -05:00
Jacob Walls
846613e521 Configured dangerous-triggers zizmor rule. 2025-11-21 14:36:32 -05:00
Jacob Walls
86b8058b40 Addressed unpinned-uses zizmor finding. 2025-11-21 14:36:28 -05:00
Jacob Walls
08f4901b3f Simplified actions after applying zizmor auto-fixes. 2025-11-21 14:36:23 -05:00
Jacob Walls
e8958c4690 Applied auto-fixes from zizmor findings. 2025-11-21 14:36:19 -05:00
Jacob Walls
09d4bf5cd9 Added GitHub Actions linter (zizmor).
At the direction of the Security Team. Thanks Markus Holtermann,
Jake Howard, and Natalia Bidart for reviews.
2025-11-21 14:36:15 -05:00
Natalia
a523d5c833 Added scripts for building and releasing Django artifacts. 2025-11-21 15:36:25 -03:00
Natalia
971c76f735 Skipped scripts/ folder from built release artifacts. 2025-11-21 15:36:25 -03:00
Jacob Walls
3f15935420 Refs #36705 -- Added coverage for multiple types of enclosing punctuation in urlize().
This case was inadvertently fixed in ad94446fcc.
2025-11-21 12:11:38 -05:00
Mariusz Felisiak
be0620b49f Refs #36031 -- Added tests of DecimalRangeField __contains lookup with unbounded decimal ranges.
Co-authored-by: Aman Sharma <210100011@iitb.ac.in>
2025-11-21 17:55:28 +01:00
Clifford Gama
7e4c4f43f5 Fixed #36718 -- Added JSONField support for negative array indexing on Oracle 21c+. 2025-11-21 11:20:12 +01:00
Jacob Walls
8ce3e1f9d0 Added missing ticket links in docs/releases/5.2.8.txt. 2025-11-20 17:31:31 -05:00
Chris Wesseling
5834643f43 Fixed #36748 -- Filtered non-standard placeholders from UNNEST queries. 2025-11-20 17:22:46 -05:00
Zubair Hassan
ff843bcbce Fixed #36734 -- Clarified the behavior of View.http_method_not_allowed. 2025-11-20 15:52:53 -05:00
kihuni
b1a65eac7c Fixed #36321 -- Defaulted suggest_on_error=True in management commands.
Python 3.15 defaults suggest_on_error=True, but the feature is available
from 3.14, so this change opts in earlier. This change can be reverted
when Python 3.15 is the minimum supported version.
2025-11-20 15:40:07 -05:00
nessita
ee2e0e2028 Ensured that Sitemap.items is described as a method in docs/ref/contrib/sitemaps.txt. 2025-11-20 15:43:21 -03:00
Jacob Walls
d9c94c5983 Fixed typo in docs/howto/deployment/wsgi/apache-auth.txt. 2025-11-20 13:38:35 -05:00
Storm B. Heg
14fb36e0b0 Refs #36663, #36739 -- Added release note for running checks against all databases. 2025-11-20 09:54:45 -05:00
farthestmage
0741987568 Fixed #36737 -- Escaped further control characters in escapejs. 2025-11-20 09:35:59 -05:00
Mariusz Felisiak
97acd4d2f9 Fixed #26609 -- Extended fields.E004 system check for unordered iterables.
Co-authored-by: Karl Wooster <karl.wooster@alleima.com>
2025-11-19 08:22:44 +01:00
varunkasyap
e05f2a7569 Fixed #36733 -- Escaped attributes in Stylesheet.__str__().
Thanks Mustafa Barakat for the report, Baptiste Mispelon for
the triage, and Jake Howard for the review.
2025-11-18 17:15:30 -05:00
Georgi Yanchev
b07298a73a Fixed #36141 -- Checked for applied replaced migrations recursively.
Regression in 64b1ac7292.
2025-11-18 08:10:25 -05:00
Annabelle Wiegart
3c005b5f79 Fixed #26379 -- Doc'd that the first filter() on a many-to-many relation is sticky. 2025-11-17 15:14:42 -05:00
Mariusz Felisiak
1ce6e78dd4 Fixed #24920 -- Added support for DecimalField with no precision.
Thanks Lily for the review.
2025-11-17 13:43:47 +01:00
Kasyap Pentamaraju
5c60763561 Fixed #36723 -- Removed logic for repositioning FilteredSelectMultiple help text. 2025-11-14 09:26:05 -05:00
Mariusz Felisiak
35f86b641a Refs #24928 -- Added introspection support for PostgreSQL HStoreField. 2025-11-14 13:36:15 +01:00
Kasyap Pentamaraju
0eec2a163a Fixed #36724 -- Removed invalid "for" attribute on <legend> tags. 2025-11-13 11:22:44 -05:00
Kasyap Pentamaraju
7e765a6859 Fixed #36686 -- Clarified Meta.ordering is ignored in GROUP BY queries. 2025-11-13 11:18:02 -05:00
Simon Charette
3aba1fced8 Fixed #36663 -- Defaulted to running checks against all databases.
Regression in 0b83c8cc4d which added
support for running checks only against databases but also defaulted to
running against no databases if not specified.

Note that this continues to *not* default to runing database tagged
checks for all management commands except the migrate one as whether or
not we should change this must be discussed further.

Thanks Tim Graham for surfacing how this was a problematic default.
2025-11-13 11:37:58 +01:00
Simon Charette
96ee097bd6 Refs #31055 -- Adjusted passing of Field.check kwargs to ArrayField.base_field.
This was missed when Field.check(databases) was introduced.
2025-11-13 10:28:59 +01:00
Simon Charette
1b539ef27e Refs #31055 -- Augmented regression tests for database system checks.
We might want to change this in the future but it should be further
discussed first.
2025-11-13 10:18:06 +01:00
Adam Johnson
abfa4619fb Fixed #36730 -- Fixed constraint validation crash for excluded FK attnames.
Regression in e44e8327d3.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2025-11-13 09:16:46 +01:00
Benedict Etzel
5401b125ab Fixed #36717 -- Redirect authenticated users on admin login view to next URL.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-11-12 19:42:24 -03:00
Clifford Gama
66b5a6de78 Refs #35381 -- Made JSONNull deconstruct using convenient import path. 2025-11-12 17:14:52 -05:00
Jacob Walls
a1ce852e52 Refs #35844 -- Ran further selenium tests with --parallel=1. 2025-11-11 21:30:00 -05:00
Jacob Walls
c0d7fbe502 Refs #35844 -- Ran selenium tests with --parallel=1. 2025-11-11 18:28:07 -05:00
Jacob Walls
c60a708b58 Refs #35844 -- Checked for forkserver mode when running runtests.py with --selenium and --parallel. 2025-11-11 18:28:07 -05:00
Dani Fornons
6821a7c990 Fixed #36053 -- Fixed placement of FilteredSelectMultiple widget label. 2025-11-11 16:31:16 -05:00