Commit Graph

34223 Commits

Author SHA1 Message Date
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
sobolevn
7c1b3391d3 Improved types in django.tasks.base dataclasses. 2026-01-07 10:23:25 -05:00
Jacob Walls
c08ed084f9 Made release test script use a random available port.
Co-authored-by: Jake Howard <git@theorangeone.net>
2026-01-07 07:57:19 -05:00
VIZZARD-X
c68e4adea0 Fixed #29257 -- Caught DatabaseError when attempting to close a possibly already-closed cursor. 2026-01-06 15:15:56 -05:00
Jacob Walls
b59c215eab Added stub release notes for 6.0.2. 2026-01-06 14:03:56 -05:00
Jacob Walls
e937be3c1d Added stub release notes for 5.2.11. 2026-01-06 14:02:13 -05:00
Jacob Walls
496af73bf6 Added release date for 6.0.1. 2026-01-06 13:02:16 -05:00
Jacob Walls
f6fd35fc6d Added release date for 5.2.10. 2026-01-06 13:02:01 -05:00
Jacob Walls
030c63d329 Fixed #36843, #36793 -- Reverted "Fixed #27489 -- Renamed permissions upon model renaming in migrations."
This reverts commits f02b49d2f3 and 6e89271a85.
2026-01-05 15:45:27 -05:00
Tim Graham
3201a895cb Added DatabaseCreation.destroy_test_db_connection_close_method hook. 2026-01-03 19:42:02 +01:00
Simon Charette
d6ae2ed868 Refs #33647 -- Fixed silent data truncation in bulk_create on Postgres.
Regression in a16eedcf9c.

The UNNEST strategy is affected by the same problem bulk_update has wrt/
to silent data truncation due to its usage of db_type which always returns
a parametrized subtype.
2025-12-31 10:41:55 -05:00
Johannes Maron
79ab0993d0 Fixed #36829 -- Reverted value of ClearableFileInput.use_fieldset to True.
There was unresolved discussion regarding whether to set
ClearableFileInput.use_fieldset to True or False when use_fieldset was
introduced in Django 4.1, since the clear checkbox appears only
sometimes. Although using <fieldset> is likely desirable, since the
primary motivation in #35892 was just to improve markup in the admin,
and a deprecation path was not provided for general form usage, future
work is deferred to #36828.

Regression in 4187da258f.

Thanks Tim Graham, Antoliny, and David Smith for triage.
2025-12-31 10:14:00 -05:00
Tim Graham
c496a7df64 Refs #21961 -- Added supports_on_delete_db_cascade skips in schema tests. 2025-12-30 22:21:57 +01:00
Pravin Kamble
ccf74f7dc7 Bumped checkout version in Github actions configuration. 2025-12-29 09:59:18 -05:00
Arfey
cc0f6c4f74 Fixed #36714 -- Fixed context sharing among async signal handlers. 2025-12-29 09:48:11 -05:00
Mariusz Felisiak
1c34b8716a Refs #24920 -- Made DecimalField system checks database dependent.
Thanks Tim Graham for the suggestion.
2025-12-28 19:21:49 +01:00
Tim Graham
4afe463950 Added some skips to GIS tests.
Also replaced some DatabaseFeatures.supports_<foo>_lookup attributes
with @skipUnlessGISLookup.
2025-12-28 14:07:11 +01:00