Ben Cail
07c8d979ae
Fixed #35323 -- Prevented file_move_safe() from trying to overwrite existing file when allow_overwrite is False.
2024-03-24 16:05:36 +01:00
Mariusz Felisiak
1c11dba835
Added ModelState.from_model() test for abstract model with unnamed indexes.
2024-03-22 13:31:33 +01:00
sharonwoo
6a37e9bfae
Fixed #35257 -- Corrected resolving output_field for IntegerField/DecimalField with NULL.
2024-03-21 10:13:54 +01:00
Mariusz Felisiak
6f7c0a4d66
Fixed ResourceWarning from unclosed SQLite connection in test_utils on Python 3.13+.
...
On SQLite, close() doesn't explicitly close in-memory connections.
Follow up to 921670c694
and
dd45d5223b
.
2024-03-20 11:44:30 +01:00
Laurent Lyaudet
f2388a4b73
Fixed #35309 -- Made prefetch clear ordering for single-valued relationships.
2024-03-20 05:26:18 +01:00
Mariusz Felisiak
921670c694
Fixed ResourceWarning from unclosed SQLite connection on Python 3.13+.
...
On SQLite, close() doesn't explicitly close in-memory connections.
Follow up to dd45d5223b
.
2024-03-19 10:03:12 +01:00
Claude Paroz
10b31eea33
Refs #31014 -- Added srid argument to FromWKB/FromWKT() GIS functions.
2024-03-18 09:45:33 +01:00
Adam Johnson
7646b9023d
Fixed #35301 -- Fixed Options._property_names for overriden properties.
...
Regression in faeb92ea13
.
2024-03-17 09:43:04 +01:00
Adam Johnson
cbf1e87398
Fixed #35294 -- Fixed TEXT format of QuerySet.explain() for long plans.
...
co-authored-by: Gordon <gordon.wrigley@gmail.com>
co-authored-by: Simon Charette <charette.s@gmail.com>
2024-03-15 06:58:14 +01:00
Ben Cail
593067a8ee
Fixed #28541 -- Fixed migrations crash when changing primary key on SQLite.
2024-03-14 20:56:43 +01:00
Johannes Maron
3d7235c67b
Refs #34488 -- Made ClearableFileInput preserve "Clear" checked attribute when form is invalid.
2024-03-14 14:03:14 +01:00
Johannes Maron
e69019555d
Fixed #35273 -- Fixed rendering AdminFileWidget's attributes.
...
Regression in 8a6c0203c4
.
2024-03-14 14:03:09 +01:00
Jon Janzen
f5c340684b
Fixed #34901 -- Added async-compatible interface to session engines.
...
Thanks Andrew-Chen-Wang for the initial implementation which was posted
to the Django forum thread about asyncifying contrib modules.
2024-03-13 17:55:15 +01:00
Mariusz Felisiak
33c06ca0da
Refs #32673 , Refs #35295 -- Avoided wrapping rhs direct values in lookups.
2024-03-13 17:46:37 +01:00
Claude Paroz
894fa55da1
Applied BoundingCircle test to only one country.
...
Looks like testing the second Country is much more computing-intensive
and brings nothing to the test.
2024-03-10 20:59:36 +01:00
Giannis Terzopoulos
73df8b54a2
Fixed #35044 -- Avoided clearing reverse relations and private fields when accessing deferred fields.
...
Regression in a7b5ad8b19
for reverse
relations and possibly in 123b1d3fcf
for
private fields.
2024-03-08 11:09:54 +01:00
Giannis Terzopoulos
0c690c6001
Refs #35044 -- Added Model.refresh_from_db(fields=...) test for clearing reverse relations.
2024-03-08 10:27:19 +01:00
Ben Cail
1570ef02f3
Fixed #35223 -- Made Model.full_clean() ignore fields with db_default when validating empty values.
...
Thanks Brian Ibbotson for the report.
Regression in 7414704e88
.
2024-03-08 05:55:25 +01:00
Dingning
549320946d
Fixed #35030 -- Made django.contrib.auth decorators to work with async functions.
2024-03-07 09:59:33 +01:00
cuinix
20848bcf39
Fixed typos in docstrings and docs.
...
Signed-off-by: cuinix <915115094@qq.com>
2024-03-07 06:01:01 +01:00
Mariusz Felisiak
c4df2a7776
Refs #35030 -- Added more tests for @user_passes_test decorator.
2024-03-06 13:28:32 +01:00
Michail Chatzis
4426b1a72d
Fixed #35021 -- Fixed capturing queries when using client-side parameters binding with psycopg 3+.
2024-03-06 11:24:58 +01:00
Adam Johnson
eff21d8e7a
Fixed #35252 -- Optimized _route_to_regex().
...
co-authored-by: Nick Pope <nick@nickpope.me.uk>
2024-03-05 13:09:10 +01:00
Mariusz Felisiak
241adf678f
Used sys_platform in tests requirements.
...
We already use implementation_name and python_version markers
so it's more consistent. Moreover, marker values can be specified
via pip's command line options.
2024-03-05 13:08:23 +01:00
Adam Zapletal
3d4fe39bac
Refs #21286 -- Removed invalid commented out models and tests from serializer tests.
...
FileField/ImageField cannot be primary keys, so serialization support
for this case will not be implemented.
XMLField was removed in d1290b5b43
.
2024-03-04 11:38:18 +01:00
Mariusz Felisiak
838659ea21
Updated fuzzy translations in tests.i18n.patterns.
...
Follow up to 9fd1b6f3f8
.
2024-03-04 11:24:21 +01:00
Shai Berger
f6ad8c7676
Refs CVE-2024-27351 -- Forwardported release notes and tests.
...
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2024-03-04 08:22:00 +01:00
Kasun Herath
f5ed4306bb
Fixed #35265 -- Added AdminSite tests for changing titles.
2024-03-04 05:34:42 +01:00
Adam Johnson
c187417611
Refs #9847 -- Added tests for handler403 resolution.
2024-03-04 05:24:36 +01:00
Adam Johnson
595738296f
Refs #26431 -- Added more test for translated path().
2024-03-02 19:54:21 +01:00
Adam Johnson
9fd1b6f3f8
Updated translation catalogs in tests.i18n.patterns.
2024-03-02 19:54:21 +01:00
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