Commit Graph

34239 Commits

Author SHA1 Message Date
Tim Graham
5d5f95da40 Refs #35744 -- Removed problematic __in lookup in test_intersection_in_nested_subquery.
It's problematic on MongoDB. Simon: "It seems odd that we'd use
__in=OuterRef("pk") over __in=[OuterRef("pk")]. It's a SQLism that
only works because right-hand-side is wrapped with (...) and that's
interpreted as a singleton tuple which is allowed with IN."
2026-01-27 20:18:50 -05:00
Jacob Walls
b30e09a942 Added stub release notes and release date for 6.0.2, 5.2.11, and 4.2.28. 2026-01-27 15:31:24 -05:00
jafarkhan83
2e83eb5e78 Fixed #36776 -- Clarified dev server runs in WSGI mode. 2026-01-26 10:45:40 -05:00
varunkasyap
229d026207 Fixed #36883 -- Split monolithic aggregation regression tests. 2026-01-26 10:37:11 -05:00
Nilesh Kumar Pahari
e92d1e3b78 Fixed #36850 -- Prevented admin filter sidebar from wrapping below the changelist.
Removed flex-wrap from .changelist-form-container and added min-width to the
main content container to ensure proper layout behavior.
Regression in 6ea3319079.
2026-01-26 10:25:47 -05:00
Skyiesac
c3c9f1908e Fixed #36812 -- Dropped support for MariaDB < 10.11. 2026-01-25 09:19:43 +01:00
Jacob Walls
68d110f1fe Refs #33735 -- Coped with stacklevel change in ASGITest.test_file_response().
Follow-up to c042fe3a74.

The original ignore was added in 0bd2c0c901
but was not adjusted when the stacklevel changed.
2026-01-23 13:16:30 -05:00
Jacob Walls
2351c1b12c Refs #36620 -- Ran coverage tests workflow on forks.
We can continue to limit the coverage comment workflow to django/django,
but now that this workflow is the main python test workflow, it should
run on forks by default. The other tests workflow (currently running
only JavaScript tests) may start running python tests again once we flesh
out the matrix, but since it was duplicating the coverage tests configuration,
we temporarily removed it.

Follow-up to 26b0e2bb92.
2026-01-23 10:13:11 -05:00
seanhelvey
b1ffa9a9d7 Fixed #13883 -- Rendered named choice groups with <optgroup> in FilteredSelectMultiple.
This patch adds support for <optgroup>s in FilteredSelectMultiple widgets.
When a popup returns a new object, if the source field contains optgroup
choices, the optgroup is now also included in the response data.

Additionally, this adds error handling for invalid source_model parameters
to prevent crashes and display user-friendly error messages instead.

Co-authored-by: Michael McLarnon <mmclar@gmail.com>
2026-01-22 21:12:23 -05:00
Jacob Walls
3851601b2e Refs #36382 -- Fixed GDAL_VERSION comparison in gdal_tests.
Tests regression in 0d31ca9883.
2026-01-20 11:54:07 -05:00
VIZZARD-X
e083c62f51 Fixed #36030 -- Fixed precision loss in division of Decimal literals on SQLite.
Thanks Bob Kline for the review.
2026-01-20 10:42:28 -05:00
Skyiesac
e5cbb8b4be Fixed #36639 -- Added CI step to run makemigrations --check against test models. 2026-01-20 10:40:53 -05:00
Skyiesac
748c2ba837 Refs #36639 -- Updated test migrations to match models. 2026-01-20 10:40:53 -05:00
James Fysh
59fcd2a199 Fixed #36869 -- Optimized MigrationGraph._generate_plan membership checks.
Previously, `_generate_plan()` relied on list membership checks,
resulting in quadratic behavior as the plan grew. On large migration
graphs this became a significant performance bottleneck.

This change uses `OrderedSet` for the plan, reducing the complexity to
linear while preserving insertion order and behavior.

Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2026-01-19 16:08:34 -03:00
Clifford Gama
d6cca8b904 Refs #25508 -- Updated outdated QuerySet.__repr__() results. 2026-01-19 09:58:43 -05:00
Clifford Gama
2541641347 Fixed unbalanced parentheses in docs. 2026-01-19 08:39:25 -05:00
Mariusz Felisiak
899eee3883 Ignored 6cff020787 formatting changes in git blame. 2026-01-19 10:00:34 +01:00
Mariusz Felisiak
6cff020787 Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
2026-01-18 21:26:56 +01:00
David Smith
0d31ca9883 Refs #36382 -- Updated GDAL tests for Memory driver deprecation in GDAL 3.11.
Follow up to fb0d463b1f

Since GDAL 3.11 the Memory driver is deprecated with its functionality
merged into the MEM dataset driver.

https://gdal.org/en/stable/drivers/vector/memory.html
2026-01-16 12:38:21 -05:00
JaeHyuck Sa
0239e86f38 Fixed #36352 -- Improved error message for fields excluded by prior values()/values_list() calls.
Signed-off-by: JaeHyuck Sa <wogur981208@gmail.com>
2026-01-16 10:28:14 -05:00
Adam Johnson
a77e541d1d Fixed #36801 -- Avoided unnecessary calculation in construct_change_message().
`changed_field_labels` is only needed if there are changes to log, so move its
calculation, including the somewhat costly `translation_override()`, inside the
conditional that checks for changes. Also avoid reading `form.changed_data`
when it’s already bound to `changed_data`.

co-authored-by: Rodolfo Becerra <44782644+rodolvbg@users.noreply.github.com>
2026-01-16 09:17:57 -05:00
JaeHyuck Sa
211b631427 Fixed #36822 -- Added parameter limit for PostgreSQL with server-side binding. 2026-01-16 09:15:53 -05:00
JaeHyuck Sa
b98075dc62 Refs #36822 -- Hoisted bulk_batch_size() implementations to base backend. 2026-01-16 09:15:53 -05:00
Amar Ahmed Deina
07a1640745 Fixed #36856 -- Mentioned needsnewfeatureprocess resolution in contributor docs.
Co-authored-by: James Bligh <blighj@users.noreply.github.com>
2026-01-15 07:27:02 -05:00
Jacob Walls
a876ada18b Bumped linter versions in requirements files and tox.ini.
Follow-up to 64ac4385c7.
2026-01-14 15:07:10 -05:00
kundan223
924156072e Fixed #36855, Refs #27222 -- Mentioned multiple invocations of Field.pre_save() in 6.0 release notes.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2026-01-14 14:45:03 -05:00
JaeHyuck Sa
4ce4ed72a4 Fixed #36821 -- Treated empty strings as NULL for iexact lookups on Oracle.
Signed-off-by: JaeHyuck Sa <wogur981208@gmail.com>
2026-01-14 13:31:15 -05:00
Jacob Walls
6a596373d4 Fixed #35402 -- Fixed crash in DatabaseFeatures.django_test_skips when running a subset of tests.
Thanks Tim Graham for the report and the review.
2026-01-14 08:25:37 -05:00
Samriddha9619
040bb3eba7 Fixed #35442 -- Prevented N+1 queries in RelatedManager with only().
Co-authored-by: Simon Charette <charette.s@gmail.com>
2026-01-13 13:18:14 -05:00
Jacob Walls
73c5e94521 Refs #36769 -- Raised SuspiciousOperation for unexpected nested tags in XML Deserializer.
Thanks Shai Berger and Natalia Bidart for reviews.
2026-01-12 16:38:32 -05:00
Jacob Walls
a25158f5cc Refs #36769 -- Avoided visiting grandchild nodes in XML Deserializer.
The only use case for visiting grandchild nodes turned out to be to
support an unintentionally invalid fixture in the test suite.

The invalid fixture added in #36969 was modeled on fixture9.xml in
dae08cf55b, so that is corrected as well
in this commit, where the test will still pass.
2026-01-12 16:38:32 -05:00
Jacob Walls
1a70889d58 Refs #36769 -- Corrected invalid XML fixtures.
fixture9.xml was likely wrong since its introduction in
35cc439228.

The relevant part of the Visa model is:

class Visa(models.Model):
    person = models.ForeignKey(Person, models.CASCADE)

The Visa.person <field>s needed to be declared as relations, and
the Person <field>s didn't need their values wrapped in `<natural>`,
since they weren't relations.
2026-01-12 16:38:32 -05:00
Adam Johnson
2b192bff26 Fixed #36858 -- Optimized Field._get_default() for db_default case.
Create and share a single instance of `DatabaseDefault` instead of making a new
one each time the lambda is called. The quick benchmark on the ticket shows a
~12% speedup for a large `bulk_create()` operation.
2026-01-12 14:05:04 -05:00
Rudraksha Dwivedi
21ceaf2fd7 Fixed #36708 -- Initialized formset to None in ChangeList.__init__().
Thanks Antoliny for the review.
2026-01-12 13:34:14 -05:00
Ülgen Sarıkavak
64ac4385c7 Bumped linter dependencies.
* psf/black-pre-commit-mirror: 25.9.0 -> 25.12.0
* pre-commit/mirrors-eslint: v9.36.0 -> v9.39.1
* zizmorcore/zizmor-pre-commit: v1.16.3 -> v1.19.0
* zizmorcore/zizmor-action: 0.2.0 -> 0.3.0
2026-01-12 08:57:36 -05:00
Parth Paradkar
eeea8d2cba Fixed #36804 -- Fixed admin system check crash for missing models. 2026-01-12 08:46:22 -05:00
Haki Benita
d61838761f Fixed #36827 -- Added support for exclusion constraints using Hash indexes on PostgreSQL. 2026-01-10 08:12:05 +01:00
mbcodes
8a0315fab7 Refs #35875 -- Added dark mode support in additional views.
Thanks Thibaud Colas for the review.
2026-01-09 15:55:46 -05:00
Clifford Gama
1d15c732bb Refs #35381 -- Added missing deprecation note for using None as RHS of JSONExact. 2026-01-09 15:49:34 -05:00
Andrea Zanotto
0a983330cd Fixed #36853 -- Fixed technical 500 and 404 email CSS support. 2026-01-09 14:08:28 -05:00
YashRaj1506
9247410b4b Fixed #36815 -- Optimized insertion of db_default fields in bulk_create().
Thanks Adam Sołtysik for the implementation idea.
2026-01-09 14:03:28 -05:00
Jacob Walls
f3b982f21f Fixed a typo in docs/ref/forms/models.txt. 2026-01-08 19:10:40 -05:00
Haki Benita
459a3d17b9 Fixed #36852 -- Ignored index_type case in ExclusionConstraint equality check. 2026-01-08 11:33:52 -05:00
Amar Ahmed Deina
091ffc4e5e Fixed #36844 -- Clarified need for reusable apps to set default_auto_field in packaging tutorial and AppConfig docs. 2026-01-08 10:20:38 -05:00
Tim Graham
2be860d6cf Clarified regression nature of data loss bug in docs/releases/6.0.1.txt and 5.2.10.txt. 2026-01-08 10:11:28 -05:00
Natalia
8703fbdf10 Added guidance on AI-assisted code submission to contributing docs. 2026-01-08 12:01:53 -03:00
Natalia
4f580c4659 Extended GitHub pull request template to require AI assistance disclosure. 2026-01-08 12:01:53 -03:00
Natalia
1717332ca2 Relocated content from docs/topics/external-packages.txt where appropriate.
Following up a forum post and a conversation with the Steering Council,
it was decided to remove the docs/topics/external-packages.txt to avoid
confusion with the Ecosystem page. Relevant content was moved to their
related sections, except for `django-contrib-comments` which is not
actively maintained.

Thank you Tim Schilling for the review.
2026-01-08 10:50:56 -03:00
Natalia
fd5def6367 Dropped unnecessary usage of "seealso" in BoundField docs. 2026-01-08 10:50:56 -03:00
Jacob Walls
b1bb6af321 Refs #23395 -- Ignored line-length formatting changes in git blame. 2026-01-07 16:56:03 -05:00