Sarah Boyce
fad334e1a9
Refs #33497 -- Added connection pool support for PostgreSQL.
...
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-03-01 09:01:18 +01:00
Simon Charette
daf7d482db
Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.
...
Once the deprecation period ends CheckConstraint.check() can become the
documented method that performs system checks for BaseConstraint
subclasses.
2024-03-01 07:15:32 +01:00
Simon Charette
f82c67aa21
Fixed #35234 -- Added system checks for invalid model field names in ExclusionConstraint.expressions.
2024-02-29 12:22:17 +01:00
Shafiya Adzhani
a738281265
Fixed #35198 -- Fixed facet filters crash on querysets with no primary key.
...
Thanks Simon Alef for the report.
Regression in 868e2fcdda
.
2024-02-29 10:01:18 +01:00
Mariusz Felisiak
0e84e70bc8
Refs #35090 -- Fixed urlpatterns.tests.SimplifiedURLTests when run in reverse.
2024-02-29 08:22:03 +01:00
Adam Zapletal
107aa76bcf
Fixed #29022 -- Fixed handling protocol-relative URLs in ManifestStaticFilesStorage when STATIC_URL is set to /.
2024-02-28 06:24:24 +01:00
David Wobrock
ef2434f850
Refs #32114 -- Fixed test crash on non-picklable objects in subtests when PickleError is raised.
...
Related to the https://github.com/python/cpython/issues/73373 .
Follow up to c09e8f5fd8
.
2024-02-26 17:18:48 +01:00
Adam Johnson
73d5eb8084
Fixed #35241 -- Cached model's full parent list.
...
co-authored-by: Keryn Knight <keryn@kerynknight.com>
co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
co-authored-by: David Smith <smithdc@gmail.com>
co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
2024-02-26 05:38:31 +01:00
Salvo Polizzi
6e1ece7ed5
Fixed #35090 -- Deprecated registering URL converters with the same name.
2024-02-23 15:54:49 +01:00
Florian Apolloner
50e95ad536
Simplified using DATABASES["OPTIONS"].
...
DATABASES["OPTIONS"] are always configured.
2024-02-23 07:49:43 +01:00
Mariusz Felisiak
f835787f71
Refs #32114 -- Fixed RemoteTestResultTest.test_unpicklable_subtest test without tblib.
...
Follow up to c09e8f5fd8
.
2024-02-22 06:27:39 +01:00
Sulabh Katila
eceb5e2eea
Fixed #34806 -- Made cached_db session backend resilient to cache write errors.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-21 21:51:58 -03:00
David Wobrock
c09e8f5fd8
Fixed #32114 -- Fixed parallel test crash on non-picklable objects in subtests.
2024-02-21 12:04:03 +01:00
Mariusz Felisiak
a269d8d1d8
Removed obsolete test_get_or_create_raises_IntegrityError_plus_traceback() test.
...
This test was added in 31b1cbc623
, but is
no longer needed, as the fix was reverted in
746caf3ef8
without any consequences, so
it now tests Python behavior rather than Django. Moreover, traceback
introspection is problematic for .pyc-only installations.
2024-02-21 11:50:22 +01:00
Simon Charette
abe6c1f93e
Refs #30913 -- Corrected IndexesTests.test_index_include_pointing_to_fk().
...
This adjusts a test assigning an Index to Meta.constraints.
2024-02-21 08:25:41 +01:00
AlexCLeduc
a084c5d35a
Fixed #35238 -- Fixed database serialization crash when base managers use prefetch_related().
...
Regression in 1391356276
following deprecation in eedbf930287cb72e9afab1f7208c24b1146b0c4ec.
2024-02-20 22:14:17 +01:00
Adam Zapletal
eb2d49b734
Fixed #23759 -- Preserved all file extensions in Storage.get_available_name().
2024-02-20 21:06:39 +01:00
Mariusz Felisiak
3426a5c33c
Refs #34900 -- Fixed CommandTypes.test_help_default_options_with_custom_arguments test on Python 3.13+.
...
c4a2e8a2c5
2024-02-20 20:59:26 +01:00
Fabian Braun
e626716c28
Fixed #34429 -- Allowed setting unusable passwords for users in the auth forms.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-20 12:13:32 -03:00
Natalia
8a757244f9
Refs #34429 -- Defined test user with unusable password for auth forms tests.
2024-02-20 12:12:37 -03:00
Mariusz Felisiak
5f637a8a8d
Fixed #35226 -- Reallowed executing queries for dynamically created connections.
...
Regression in 8fb0be3500
.
Thanks Florian Apolloner for the report.
2024-02-19 18:34:18 +01:00
Mariusz Felisiak
9350308f37
Fixed closing connections in test_utils.tests.AllowedDatabaseQueriesTests.
2024-02-19 14:08:30 +01:00
Adam Johnson
f65f8ab84e
Refs #28011 -- Removed ForeignObjectRel.is_hidden().
2024-02-19 12:22:46 +01:00
Adam Johnson
f25d84f61a
Fixed #35232 -- Cached model's Options.verbose_name_raw.
2024-02-19 06:05:52 +01:00
Adam Johnson
28a3fbe004
Fixed #35229 -- Made URL custom error handler check run once.
2024-02-19 05:58:37 +01:00
Adam Johnson
5e80390add
Fixed #35230 -- Added cached ForeignObjectRel.accessor_name.
2024-02-19 05:47:12 +01:00
Aaron Linville
7a05b8a2fa
Fixed #24018 -- Allowed setting pragma options on SQLite.
2024-02-16 12:59:19 +01:00
ontowhee
66e47ac69a
Fixed #29725 -- Removed unnecessary join in QuerySet.count() and exists() on a many to many relation.
...
Co-Authored-By: Shiwei Chen <april.chen.0615@gmail.com>
2024-02-16 08:57:16 +01:00
Simon Charette
0d8fbe2ade
Refs #34060 -- Fixed crash when filtering against literal JSON with psycopg2.
2024-02-16 07:40:33 +01:00
Albert Defler
c991602ce5
Fixed #34060 -- Fixed migrations crash when adding check constraints with JSONField __exact lookup on Oracle.
2024-02-15 13:57:58 +01:00
Shafiya Adzhani
22285d366c
Fixed #33037 -- Fixed Trunc() with offset timezones on MySQL, SQLite, Oracle.
2024-02-15 10:02:57 +01:00
Shafiya Adzhani
2aa8388110
Improved test helpers in truncated date/time field tests.
...
Co-authored-by: Lily Foote <code@lilyf.org>
2024-02-15 10:02:53 +01:00
Hisham Mahmood
8db593de05
Fixed #35173 -- Fixed ModelAdmin.lookup_allowed() for lookups on foreign keys when not included in ModelAdmin.list_filter.
...
Regression in f80669d2f5
.
Thanks Sarah Boyce for the review.
2024-02-14 22:29:49 -03:00
Salvo Polizzi
e6fa74f020
Fixed #35179 -- Made admindocs detect positional/keyword-only arguments.
2024-02-14 13:17:40 +01:00
Moein Bbp
cf107fe255
Fixed #35122 -- Made migrate --prune option respect --app_label.
2024-02-13 14:47:49 +01:00
David Smith
222bf2932b
Refs #35058 -- Added support for measured geometries to GDAL GeometryCollection and subclasses.
2024-02-12 15:21:11 +01:00
Daniel Garcia Moreno
bc8471f0aa
Refs #34900 , Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.2+.
...
Python 3.12.2 bring back the skipped tests in the number of running
tests. Refs
0a737639dc
2024-02-10 16:14:51 +01:00
David Sanders
06264258dc
Fixed #35175 -- Made migraton writer preserve keyword-only arguments.
...
Thanks Gerald Goh for the report.
2024-02-09 09:37:13 +01:00
Ben Cail
8b7ddd1b62
Refs #34534 -- Reduced constraint operations with Meta.constraints when optimizing migrations.
2024-02-09 07:02:52 +01:00
bcail
9c5e382b98
Fixed #35073 -- Avoided unnecessary calling of callables used by SET/SET_DEFAULT in Collector.collect().
2024-02-08 18:41:32 +01:00
Vašek Dohnal
1b5338d03e
Fixed #35174 -- Fixed Signal.asend()/asend_robust() crash when all receivers are asynchronous.
...
Regression in e83a88566a
.
2024-02-08 11:36:28 +01:00
Mariusz Felisiak
2f14c2cedc
Fixed #35172 -- Fixed intcomma for string floats.
...
Thanks Warwick Brown for the report.
Regression in 55519d6cf8
.
2024-02-08 10:58:54 +01:00
Hisham Mahmood
d79fba7d8e
Fixed #35099 -- Prevented mutating queryset when combining with & and | operators.
...
Thanks Alan for the report.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2024-02-07 12:36:30 +01:00
David Smith
6ee37ada32
Fixed #30686 -- Used Python HTMLParser in utils.text.Truncator.
2024-02-07 09:46:25 +01:00
David Smith
70f39e46f8
Refs #30686 -- Fixed text truncation for negative or zero lengths.
2024-02-07 05:18:35 +01:00
nessita
3e820d10f8
Refs #10743 -- Removed leftover comment in tests/admin_changelist/tests.py.
2024-02-06 16:50:54 -03:00
David Smith
48a4693951
Refs #30686 -- Improved test coverage of Truncator.
2024-02-06 16:35:08 +01:00
Adam Johnson
55519d6cf8
Fixed CVE-2024-24680 -- Mitigated potential DoS in intcomma template filter.
...
Thanks Seokchan Yoon for the report.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Shai Berger <shai@platonix.com>
2024-02-06 09:07:31 -03:00
Tom Carrick
9cefdfc43f
Refs #10743 -- Enabled ordering for lookups in ModelAdmin.list_display.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Nina Menezes <https://github.com/nmenezes0 >
2024-02-05 21:42:04 -03:00
Tom Carrick
4ade8386eb
Fixed #10743 -- Allowed lookups for related fields in ModelAdmin.list_display.
...
Co-authored-by: Alex Garcia <me@alexoteiza.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Nina Menezes <https://github.com/nmenezes0 >
2024-02-05 21:42:04 -03:00