Commit Graph

32656 Commits

Author SHA1 Message Date
Adam Johnson e5ec11a84d Fixed #35285 -- Optimized ForeignObject._check_unique_target(). 2024-03-11 06:52:50 +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
umair mehmood 4114179ca7
Fixed #35286 -- Updated broken link in django/template/smartif.py docstring. 2024-03-10 20:05:15 +01:00
canhuynh1998 a7baa874d8 Fixed #35280 -- Improved iriencode filter example in docs. 2024-03-10 14:54:38 +01:00
Adam Johnson 0a560eab55
Moved --failfast to DiscoverRunner. 2024-03-09 20:34:00 +01:00
Adam Johnson faeb92ea13 Fixed #35270 -- Optimized model's Options._property_names.
co-authored-by: Nick Pope <nick@nickpope.me.uk>
2024-03-09 16:14:18 +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 74f7fe3f3d Optimized Model.refresh_from_db(fields=...) by using a set. 2024-03-08 10:33:18 +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
Mitchina 2d3531af23 Corrected code-block directives in topics/forms/formsets.txt. 2024-03-08 08:07:39 +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
Nick Pope 1669e54965
Refs #30397 -- Optimized interpolation of index and constraint names a bit more. 2024-03-08 05:49:32 +01:00
Dingning 549320946d Fixed #35030 -- Made django.contrib.auth decorators to work with async functions. 2024-03-07 09:59:33 +01:00
Mariusz Felisiak 1fffa4af12
Fixed typo in django/db/models/expressions.py. 2024-03-07 08:40:24 +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
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