Adam Johnson
9e35c8b2e3
Refs #30397 -- Optimized interpolation of index and constraint names a bit.
2024-03-07 05:59:13 +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
Mariusz Felisiak
177e649396
Fixed broken links and redirects in docs.
2024-03-06 08:50:21 +01:00
Mohammad Alsakhawy
f06bb7c88a
Updated broken links in docs/ref/contrib/gis/tutorial.txt.
2024-03-06 05:50:47 +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
Josh Smeaton
6e195b800a
Fixed #35267 -- Clarified time zone topic for PostgreSQL in docs.
...
The timezone documentation for Postgres mentions the behavior of
time zone conversion, but links to the wrong setting that controls the
behavior.
Postgres will not return datetimes in the time zone set by the
TIME_ZONE setting, but rather the time zone of the database connection,
which is defined by DATABASES.TIME_ZONE setting falling back to UTC.
This corrects the link in the documentation and adds note that there
are two distinct TIME_ZONE settings and the one most are familiar with
is not considered for PostgreSQL time zone conversion.
2024-03-05 11:22:54 +01:00
Adam Johnson
ab22b7c65f
Fixed #35266 -- Deferred formatting in RelatedField._check_clashes().
2024-03-04 20:26:23 +01:00
Leandro de Souza
368a8a3a83
Fixed #35261 -- Corrected Media JS example of object-based paths in docs.
...
`rel` attribute is not valid on `<link>` tags.
2024-03-04 18:59:49 +01:00
erosselli
3fcef50472
Added a GitHub pull request template.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
Co-authored-by: Adam Johnson <me@adamj.eu>
2024-03-04 14:07:37 -03: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
Mariusz Felisiak
337e37f3bb
Added stub release notes for 5.0.4.
2024-03-04 10:29:33 +01:00
Mariusz Felisiak
da39ae4b5f
Added CVE-2024-27351 to security archive.
2024-03-04 10:10:35 +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
71d5eafb05
Fixed #35250 -- Made URL system checks use uncompiled regexes.
2024-03-02 19:54:21 +01:00
Adam Johnson
5dfcf343cd
Refs #35250 -- Avoided double conversion in RoutePattern.
2024-03-02 19:54:21 +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
Florian Apolloner
bcccea3ef3
Made runserver close database connections from migration checks.
2024-03-01 08:13:59 +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
Simon Charette
0fb104dda2
Refs #35234 -- Moved constraint system checks to Check/UniqueConstraint methods.
2024-02-29 10:38:19 +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
kbehlers
3cb1ba50cc
Fixed typo in docs/ref/contrib/admin/index.txt.
2024-02-29 08:28:20 +01:00
Mariusz Felisiak
0e84e70bc8
Refs #35090 -- Fixed urlpatterns.tests.SimplifiedURLTests when run in reverse.
2024-02-29 08:22:03 +01:00
Mariusz Felisiak
11695b8fdd
Removed #django-geo IRC channel in docs.
...
It's been inactive for several years.
2024-02-28 19:05:32 +01:00
David Sanders
7714ccfeae
Refs #34964 -- Doc'd that Q expression order is preserved.
2024-02-28 11:41:06 +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
Florian Apolloner
18d79033b9
Refs #34200 -- Removed unnecessary check in DatabaseWrapper.ensure_role() on PostgreSQL.
...
ensure_role() is only called in init_connection_state() where a new
connection is established.
2024-02-26 10:53:47 +01:00
Mariusz Felisiak
977d254169
Added release date for 5.0.3, 4.2.11, and 3.2.25.
2024-02-26 08:21:36 +01:00
Adam Johnson
e65deb7d14
Fixed #35246 -- Made Field.unique a cached property.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-26 06:20:16 +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
b9d539cca7
Bumped versions in pre-commit and npm configurations.
2024-02-23 07:30:44 +01:00
erosselli
cfecac27de
Fixed #35140 -- Increased font size in debug views.
2024-02-23 06:44:16 +01:00
nessita
1fd57f2a21
Added GitHub Actions to create and check for reminders in pull requests.
2024-02-22 09:17:46 -03: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
Jon Janzen
6feaad9113
Refs #30950 , Refs #35187 -- Added tests for byte-compiled Django to daily builds.
2024-02-21 12:47:10 +01: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
Carlton Gibson
0a646c8e08
Removed distracting note from tutorial 4.
...
The note on a possible race condition is inappropriate in this
tutorial setting. To quote Diátaxis:
> Your job is to guide the learner to a successful conclusion. There
> may be many interesting diversions along the way … - ignore them.
Co-Authored-By: Ryan Hiebert <ryan@ryanhiebert.com>
2024-02-21 06:21:20 +01:00