1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
Commit Graph

32679 Commits

Author SHA1 Message Date
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
Adam Johnson
98e6f2396c Fixed #35237 -- Merged system checks for admin actions. 2024-02-21 05:25:25 +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
Fabian Braun
f64c528c17 Refs #34429 -- Created SetPasswordMixin to reuse password validation logic in auth forms.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-20 10:50:49 -03:00
Adam Johnson
31314980be Fixed #35236 -- Used Field.attname/column attributes instead of get_attname()/get_attname_column(). 2024-02-20 11:34:00 +01:00
d9pouces
e0496b2e9a
Used <span> instead of <div> in admin theme button.
<div> is not allowed as child of <button>.
2024-02-20 10:01:45 +01:00
sandjio
9bd849c8d5 Fixed #35153 -- Added note about locale name notation to FORMAT_MODULE_PATH docs.
Co-authored-by: Paul Hermans <paul.hermans@benemtech.com>
2024-02-20 05:29:15 +01: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