Mariusz Felisiak
56977b466c
Refs #35844 -- Doc'd Python 3.14 compatibility.
2025-10-17 19:25:02 +02:00
Mariusz Felisiak
2d9c194d5a
Refs #35844 -- Relaxed GEOSIOTest.test02_wktwriter() test assertion.
2025-10-17 19:25:02 +02:00
Jacob Walls
d980d68609
Bumped minimum isort version to 7.0.0.
...
Added ignores relating to https://github.com/PyCQA/isort/issues/2352 .
2025-10-16 14:59:02 -04:00
Adam Johnson
e244d8bbb7
Refs #28586 - Copied fetch mode in QuerySet.create().
...
This change allows the pattern `MyModel.objects.fetch_mode(...).create(...)` to
set the fetch mode for a new object.
2025-10-16 14:52:22 -04:00
Adam Johnson
6dc9b04018
Refs #28586 -- Copied fetch modes to related objects.
...
This change ensures that behavior and performance remain consistent when
traversing relationships.
2025-10-16 14:52:22 -04:00
Adam Johnson
a321d961b0
Refs #28586 -- Made fetch modes pickle as singletons.
...
This change ensures that we don’t create new instances of fetch modes
when pickling and unpickling, saving memory and preserving their singleton
nature.
2025-10-16 14:52:22 -04:00
Adam Johnson
e097e8a12f
Fixed #28586 -- Added model field fetch modes.
...
May your database queries be much reduced with minimal effort.
co-authored-by: Andreas Pelme <andreas@pelme.se >
co-authored-by: Simon Charette <charette.s@gmail.com >
co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com >
2025-10-16 14:52:22 -04:00
Jacob Walls
bee64561a6
Refs #36648 -- Removed hardcoded pk in CompositePKAggregateTests.
2025-10-15 23:44:14 -04:00
Clifford Gama
6862d46dd9
Fixed 36622 -- Prevented LazyObject FileField storages from evaluating at boot time.
...
Co-authored-by: Fabien MICHEL <fmichel@adista.fr >
2025-10-15 18:25:08 -03:00
Mariusz Felisiak
5a2490a19d
Skipped GISFunctionsTests.test_geometry_type() test for MultiPoint on MariaDB and GEOS 3.12+.
...
GEOSWKTWriter_write() behavior was changed in GEOS 3.12+ to include
parentheses for sub-members (https://github.com/libgeos/geos/pull/903 ).
MariaDB doesn't accept WKT representations with additional parentheses
for MultiPoint. This is an accepted bug (MDEV-36166) in MariaDB that
should be fixed in the future:
- https://jira.mariadb.org/browse/MDEV-36166
2025-10-15 15:03:07 +02:00
Mariusz Felisiak
118df57d8d
Moved object creation to subTest() in GISFunctionsTests.test_geometry_type() test.
2025-10-15 15:03:07 +02:00
Jacob Walls
02eed4f378
Fixed #36648 , Refs #33772 -- Accounted for composite pks in first()/last() when aggregating.
2025-10-14 15:48:29 -04:00
Thibaut Decombe
d0c8f89c94
Refs #31223 -- Added __class_getitem__() to SetPasswordMixin.
2025-10-14 08:13:52 -04:00
antoliny0919
bc03f1064e
Fixed #34041 -- Added aria-current attribute to admin breadcrumbs.
...
Co-authored by: farita1699 <uwanjerry25@gmail.com >
2025-10-14 08:10:43 -04:00
Jacob Walls
1ae8a42af1
Removed reference to "manager" in ForeignKeyTests.
...
Follow-up to 0de89b6f8d .
2025-10-13 16:12:44 -04:00
Sarah Boyce
5b51e6f759
Fixed #36611 , Refs #36580 -- Added system check for multicolumn ForeignObject in Meta.indexes/constraints/unique_together.
...
ForeignObjects with multiple `from_fields` are not supported in these
options.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com >
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com >
2025-10-13 14:53:39 -03:00
Simon Charette
edde2891c3
Fixed #36660 -- Fixed a regression in descending Index local field checks.
...
Regression in 8638d8bf74 .
Refs #36273 .
Thanks Federico Bond for the report.
2025-10-13 10:42:23 -03:00
Mariusz Felisiak
5bd775703c
Fixed #36623 -- Dropped support for PostgreSQL 14 and PostGIS 3.1.
2025-10-03 17:12:57 -04:00
Mariusz Felisiak
6cb641ba75
Refs #36491 -- Skipped ParallelTestSuiteTest.test_buffer_mode_reports_setupclass_failure() without tblib.
2025-10-02 13:20:01 +02:00
Sarah Boyce
924a0c092e
Fixed CVE-2025-59682 -- Fixed potential partial directory-traversal via archive.extract().
...
Thanks stackered for the report.
Follow up to 05413afa8c .
2025-10-01 08:12:07 -04:00
Mariusz Felisiak
41b43c74bd
Fixed CVE-2025-59681 -- Protected QuerySet.annotate(), alias(), aggregate(), and extra() against SQL injection in column aliases on MySQL/MariaDB.
...
Thanks sw0rd1ight for the report.
Follow up to 93cae5cb2f .
2025-10-01 08:11:45 -04:00
Adam Johnson
8b241f84e2
Fixed #36614 -- Deprecated QuerySet.values_list(flat=True) without a field.
...
Thanks to Jacob Walls and Simon Charette for their input.
co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com >
2025-09-30 08:46:28 +02:00
Mariusz Felisiak
8b84364d46
Fixed assertIndexExists() crash when non-index constraint exists on the same columns.
2025-09-29 23:01:12 +02:00
Shubham Singh
be581ff473
Fixed #36491 -- Fixed crash in ParallelTestRunner with --buffer.
...
Thanks Javier Buzzi and Adam Johnson for reviews.
Co-authored-by: Simon Charette <charette.s@gmail.com >
2025-09-26 10:55:30 -04:00
Jacob Walls
7894776bc9
Refs #28526 -- Provided URLResolver namespace in technical 404 template.
...
This avoids looking up the nonexistent "name" attribute on URLResolver,
which logs verbosely.
2025-09-26 14:06:39 +02:00
John Parton
1820d35b17
Fixed #36605 -- Added support for QuerySet.in_bulk() after .values() or .values_list().
...
co-authored-by: Adam Johnson <me@adamj.eu >
co-authored-by: Simon Charette <charette.s@gmail.com >
2025-09-25 08:51:43 -04:00
SaJH
68aae8878f
Fixed #36434 -- Preserved unbuffered stdio (-u) in autoreloader child.
...
Signed-off-by: SaJH <wogur981208@gmail.com >
2025-09-25 11:38:28 +02:00
Mridul Dhall
b67a36ec6f
Fixed #36543 -- Fixed time formats for fr_CA.
...
Thanks Chris Anderson for the report.
2025-09-23 16:52:47 +02:00
saJaeHyukc
748551fea0
Fixed #36264 -- Excluded proxy neighbors of parents from deletion collection when keep_parents=True.
...
Signed-off-by: saJaeHyukc <wogur981208@gmail.com >
2025-09-23 16:40:57 +02:00
David Smith
e20e189045
Refs #33783 -- Added IsEmpty GIS database function and __isempty lookup on SpatiaLite.
2025-09-22 22:04:42 -04:00
Mariusz Felisiak
6fe96639ba
Bumped versions in pre-commit and npm configurations.
2025-09-22 17:25:19 +02:00
Ryan P Kilby
f9a44cc0fa
Fixed #35453 -- Made ManyToManyField.concrete False.
...
ManyToManyField was already excluded from fields, concrete_fields,
and local_concrete_fields in Options.
2025-09-22 09:52:22 -04:00
Shubham Singh
dce1b9c2de
Fixed #36480 -- Made values() resolving error mention unselected aliases.
...
Follow-up to cb13792938 . Refs #34437 .
2025-09-22 08:35:53 -04:00
Simon Charette
af84cfba59
Fixed #36612 -- Fixed a KeyTextTransform crash on MySQL against annotations.
...
MySQL only supports the ->> when used directly against columns, this can be
inferred by the presence of lhs.output_field.model as model bounds fields are
directly tied to columns.
Purposely don't systematically switch to using JSON_QUOTE(JSON_EXTRACT(...))
as there might be functional indices out there that rely on the SQL remaining
stable between versions.
Thanks Jacob Tavener for the report.
2025-09-22 09:00:24 +02:00
Samriddha9619
a36df6890d
Fixed #36488 -- Fixed merging of query strings in RedirectView.
...
Co-authored-by: Ethan Jucovy <ethan.jucovy@gmail.com >
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com >
2025-09-22 08:54:08 +02:00
Senthil Kumar
5ee651f255
Fixed #36369 -- Cleared additional cached properties in apps.clear_cache().
...
Thanks Clifford Gama for the report.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com >
2025-09-19 14:57:05 -04:00
사재혁
23b6594026
Fixed #36584 , Refs #36149 -- Allowed subquery values against tuple in lookup via ForeignObject.
2025-09-19 13:15:41 -04:00
Sarah Boyce
7528979153
Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
2025-09-19 09:49:03 +02:00
Adam Johnson
74a9c2711c
Refs #28586 -- Split descriptor from GenericForeignKey.
...
This makes GenericForeignKey more similar to other fields which act as
descriptors, preparing it to add “fetcher protocol” support in a clear and
consistent way.
2025-09-18 19:44:16 -04:00
Jacob Walls
cebbd5a6ad
Advanced deprecation warnings for Django 6.1.
2025-09-17 15:17:05 -03:00
Jacob Walls
b83204a06e
Increased the default PBKDF2 iterations for Django 6.1.
2025-09-17 15:17:05 -03:00
Jacob Walls
0655d958bd
Refs #36390 -- Removed support for RemoteUserMiddleware subclasses missing aprocess_request().
...
Per deprecation timeline.
2025-09-17 15:17:05 -03:00
Jacob Walls
7d7e5cd055
Refs #35444 -- Removed contrib.postgres aggregates ordering kwarg per deprecation timeline.
2025-09-17 15:17:05 -03:00
Jacob Walls
32e266dc5b
Refs #35530 -- Removed request.user or auser() fallback in auth.login and auth.alogin.
...
Per deprecation timeline.
2025-09-17 15:17:05 -03:00
Jacob Walls
a146fe2930
Refs #22712 -- Removed all parameter from django.contrib.staticfiles.finders.find().
...
Per deprecation timeline.
2025-09-17 15:17:05 -03:00
Jacob Walls
b931156c20
Refs #35859 -- Removed support for Task enqueuing on transaction commit.
...
This removes the ability to configure Task enqueueing via a setting,
since the proposed `ENQUEUE_ON_COMMIT` did not support multi-database
setups.
Thanks to Simon Charette for the report.
Follow-up to 4289966d1b .
2025-09-17 13:28:58 -03:00
Simon Charette
4fcc2883fa
Refs #27222 -- Restored Model.save()'s refreshing of db_returning fields even if a value is set.
...
The logic could likely be adjusted to assign the pre_save value in most cases
to avoid the database transit but it could break in subtle ways so it's not
worth the complexity it would require.
Regression in 94680437a4 .
Co-authored-by: Tim Graham <timograham@gmail.com >
2025-09-17 07:50:08 -04:00
antoliny0919
1e7728888d
Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
...
Regression in a0f50c2a48 .
2025-09-17 09:56:01 +02:00
Adam Zapletal
606fc35279
Fixed #36083 -- Ran system checks in ParallelTestSuite workers.
...
Workers created by ParallelTestSuite were not running system
checks in the spawn multiprocessing mode. In general this is
fine, but system checks can have side effects expected by tests.
This patch runs system checks inside of _init_worker, which is
only called by ParallelTestSuite.
2025-09-16 21:57:22 -04:00
Adam Johnson
2336d5d33a
Refs #36606 -- Added tests for QuerySet.values_list(flat=True) without fields.
2025-09-16 20:58:40 -04:00