1
0
mirror of https://github.com/django/django.git synced 2025-01-15 12:52:31 +00:00

32232 Commits

Author SHA1 Message Date
David Sanders
06b05c748f [5.0.x] Refs #34936 -- Added test for altering DecimalField with db_default to non-nullable.
Backport of 1944f490f91e44e1378d53420b64a78163aea815 from main
2024-02-01 08:13:26 +01:00
James Thorniley
f1fbd061ac [5.0.x] Fixed #35059 -- Ensured that ASGIHandler always sends the request_finished signal.
Prior to this work, when async tasks that process the request are cancelled due
to receiving an early "http.disconnect" ASGI message, the request_finished
signal was not being sent, potentially leading to resource leaks (such as
database connections).

This branch ensures that the request_finished signal is sent even in the case
of early termination of the response.

Regression in 64cea1e48f285ea2162c669208d95188b32bbc82.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of 11393ab1316f973c5fbb534305750740d909b4e4 from main
2024-01-31 14:45:44 -03:00
Natalia
bbb9ef3c62 [5.0.x] Refs #35059 -- Made asgi tests' SignalHandler helper class re-usable by other tests.
Backport of a43d75e81da783fda08bf8d3493252e3676d11ea from main
2024-01-31 14:45:13 -03:00
Ben Cail
d28c61b777 [5.0.x] Fixed #35156 -- Removed outdated note about not supporting foreign keys by SQLite.
Backport of b3dc80682e678b20c89fb2a430c0bc77960a29ac from main
2024-01-31 18:35:30 +01:00
Mariusz Felisiak
7453d6a807 [5.0.x] Fixed #35159 -- Fixed dumpdata crash when base querysets use prefetch_related().
Regression in 139135627650ed6aaaf4c755b82c3bd43f2b8f51
following deprecation in edbf930287cb72e9afab1f7208c24b1146b0c4ec.

Thanks Andrea F for the report.
Backport of 38eaf2f21a2398a8dd8444f6df3723898cb5fe2a from main
2024-01-31 16:10:50 +01:00
evananyonga
2822cafa3c [5.0.x] Corrected BaseCommand.check() signature in docs.
Backport of ae8baaee9d717cb48d59514b7130e35ae921d265 from main
2024-01-30 11:41:26 +01:00
Nicolas Delaby
a5440054d2 [5.0.x] Fixed #35135 -- Made FilteredRelation raise ValueError on querysets as rhs.
Regression in 59f475470494ce5b8cbff816b1e5dafcbd10a3a3.

Backport of 820c5f1bacd41713bd30d8b5fefb66752ff15c4c from main
2024-01-30 05:54:39 +01:00
Alexander Lazarević
28d6db26a2 [5.0.x] Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECONDS setting.
Backport of a5365339eaee043895a79dbbdd7462f1399136e5 from main
2024-01-29 19:24:10 +01:00
Natalia
f588c444fd [5.0.x] Added stub release notes and release date for 5.0.2, 4.2.10, and 3.2.24.
Backport of 06d0a1bd56a9899c351ca047a05813e8dd6a4e17 from main
2024-01-29 11:47:13 -03:00
Claude Paroz
3cc35aafab [5.0.x] Updated translations from Transifex. 2024-01-29 05:22:31 +01:00
Mariusz Felisiak
414dda184f [5.0.x] Ignored 0379e7532fdf3212b1fe22a58826109c23009be3 formatting changes in git blame. 2024-01-26 12:59:07 +01:00
Mariusz Felisiak
0379e7532f [5.0.x] Applied Black's 2024 stable style.
https://github.com/psf/black/releases/tag/24.1.0

Backport of 305757aec19c9d5111e4d76095ae0acd66163e4b from main
2024-01-26 12:55:56 +01:00
Mariusz Felisiak
86dd89e623 [5.0.x] Bumped versions in pre-commit and npm configurations.
Backport of 9b056aa5afbd1f037189f5b9250ef68e87a93e19 from main
2024-01-26 12:51:24 +01:00
Adam Johnson
45fae65672 [5.0.x] Refs #34140 -- Fixed blacken-docs pre-commit configuration.
Missed in 6015bab80e28aef2669f6fac53423aa65f70cb08. The default
blacken-docs hook definition does not apply to .txt files, which the
Django documentation uses. This commit overrides that definition to
point blacken-docs at the appropriate files.
Backport of d89a465e62ad876cc7f1332d1712700cb81f3995 from main
2024-01-26 12:49:18 +01:00
Mariusz Felisiak
abcd99244f [5.0.x] Bumped versions in pre-commit and npm configurations.
Backport of 7fcf4f2f0f19c353fe3ee9fe2f6c4baeda4f03c8 from main
2024-01-26 12:49:14 +01:00
duranbe
b2601a77f9 [5.0.x] Fixed #34971 -- Doc'd additional loggers.
Co-authored-by: duranbe <benoit.durand.mail@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of 0450c9bdf1773297c61b4e36850ab997ffd5dde2 from main
2024-01-24 08:48:17 -03:00
Adrienne Franke
d490d009a3 [5.0.x] Fixed typo in docs/topics/auth/default.txt.
Backport of 8570e091d025c4aacc6b76597a3322030c2f8162 from main
2024-01-22 17:43:46 +01:00
Adam Johnson
60bc65eb80 [5.0.x] Fixed tutorial 'background.gif' reference.
Missed in 76fda7729e4cdfec715cd92b2c80d851797b05f7.
Backport of a5622f84ab0ba0ebb30c2b85f2b85d8aef75f337 from main
2024-01-22 05:26:15 +01:00
Emmanuel Katchy
c4a6a8d815 [5.0.x] Updated "Dive Into Python" links.
Backport of 12ffcfc350a19bbfbc203126a9b6c84b5e0d0ba2 from main
2024-01-20 22:22:49 +01:00
Mariusz Felisiak
ee78fe390d [5.0.x] Fixed #35127 -- Made Model.full_clean() ignore GeneratedFields.
Thanks Claude Paroz for the report.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
Backport of 4879907223d70ee1a82474d9286ccfa5dae96971 from main
2024-01-19 08:56:14 +01:00
Salvo Polizzi
4ed1423de4 [5.0.x] Fixed #35121 -- Corrected color for links in the admin.
Thanks Collin Anderson for the report.

Regression in 6ad2738a8f32b94cbae742f212080fadf2dee421.

Backport of 10c7c7320baf1c655fcb91202169d77725c9c4bd from main
2024-01-18 14:07:23 +01:00
Baptiste Mispelon
a7b35aa7c9 [5.0.x] Used more specific link to email backends in EMAIL_BACKEND docs.
Backport of 1592f0ac220c1fd37779f6d33efb28ebd60e2e66 from main
2024-01-16 20:10:39 +01:00
jordanbae
dd2d76803c [5.0.x] Fixed #34949 -- Clarified when UniqueConstraints with include/nulls_distinct are not created.
Backport of 4fec1d2ce37241fb8fa001971c441d360ed2a196 from main
2024-01-15 14:16:12 +01:00
evananyonga
d56b2105b6 [5.0.x] Made management command examples more consistent in docs.
Backport of ec7651586d2d94e1ccd8f905c6a3776ad936b62d from main
2024-01-09 20:56:46 +01:00
Sarah Boyce
4cba6748a6 [5.0.x] Fixed #35087 -- Reallowed filtering against foreign keys not listed in ModelAdmin.list_filters.
Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7.

Backport of a9094ec1f43dca7f2a649327afcd5e6226b4959c from main
2024-01-08 14:25:32 +01:00
Adam Johnson
4818a139f7 [5.0.x] Fixed #35084 -- Recommended 'django_' prefix for reusable app modules.
Backport of 05f124348e72c1dcf1f6e5de72ffc1f67ad9aa77 from main
2024-01-04 11:58:33 +01:00
Adam Johnson
ef8234aef8 [5.0.x] Refs #33690 -- Updated tutorial for admin dark mode toggle.
Backport of c65f49d3cb8709f2f694f78b4849bc7693e90416 from main
2024-01-03 22:18:45 +01:00
Mariusz Felisiak
abb2448f17 [5.0.x] Added stub release notes for 5.0.2.
Backport of f412add786dfc18424eee6281ec8cc97220b04fc from main
2024-01-02 10:35:04 +01:00
Mariusz Felisiak
278eeca181 [5.0.x] Post-release version bump. 2024-01-02 10:09:37 +01:00
Mariusz Felisiak
9c436a09b3 [5.0.x] Bumped version for 5.0.1 release. 5.0.1 2024-01-02 10:07:09 +01:00
Mariusz Felisiak
01d2f94cfd [5.0.x] Added release date for 5.0.1 and 4.2.9.
Backport of f82a2c3b3d553f36661cfdce5261bffb669d68a9 from main
2024-01-02 09:58:37 +01:00
Zowie Beha
031bc47101 [5.0.x] Fixed #35072 -- Corrected Field.choices description in models topic.
Backport of 8fcd7b01eec85a509762dd8dbb3a27b7ab521e94 from main
2024-01-02 05:24:24 +01:00
Salvo Polizzi
c69dbc7c10 [5.0.x] Fixed #35069 -- Fixed typo in docs/ref/forms/api.txt.
Backport of dc26a3d563b1e1d98d40f5d351a6a61c34f12d98 from main
2023-12-30 15:00:33 +01:00
Mohammad Yameen
c8274ecfe2 [5.0.x] Corrected method/function wording in tutorial 3.
Backport of bb560651c489879c22878cba5003a09b6a9f930a from main
2023-12-29 06:01:47 +01:00
virgitl.io
8480f2ec36 [5.0.x] Added backticks around name argument in tutorial 3.
Backport of acfdf395061537f131e6116383284690f17aa8d9 from main
2023-12-29 05:58:15 +01:00
Mariusz Felisiak
f33eddff8a [5.0.x] Corrected code-block directives in docs.
Backport of 0be6dde81721e4a61caf45422987c599ebfcfe56 from main
2023-12-28 19:53:02 +01:00
Mariusz Felisiak
454269b2e1
[5.0.x] Updated asgiref dependency for 5.0 release series. 2023-12-28 09:46:34 +01:00
David D Lowe
7e3ba869a6 [5.0.x] Improved DEFAULT_FROM_EMAIL/SERVER_EMAIL docs.
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>

Backport of 61aae838f77c2d3f1bb2b50095cdf3d79afffb02 from main
2023-12-28 09:44:37 +01:00
Mariusz Felisiak
9a182f3d95 [5.0.x] Fixed #35056 -- Fixed system check crash on reverse m2m relations with related_name in ModelAdmin.filter_horizontal/vertical.
Thanks Thomas Feldmann for the report.

Regression in 107865780aa44914e21d27fdf4ca269bc61c7f01.
Backport of 751d732a3815a68bdb5b7aceda0e7d5981362c4a from main
2023-12-27 20:37:23 +01:00
David Wobrock
9aad44150f [5.0.x] Fixed #35050 -- Fixed prefixing field names in FilteredRelation().
Thanks Mark Zorn for the report.

Regression in 59f475470494ce5b8cbff816b1e5dafcbd10a3a3.

Backport of 14917c9ae272f47d23401100faa6cefa8e1728bf from main
2023-12-23 18:33:07 +01:00
Mariusz Felisiak
42c31f867f [5.0.x] Fixed #35054 -- Fixed crash on Oracle when fetching JSONFields with oracledb 2.0.0.
Backport of 6c08dba5176606e8a62dd108bb6c9467d678d2f4 from main
2023-12-22 09:44:34 +01:00
Nicolas Lupien
bc60b1e292 [5.0.x] Fixed #35015 -- Updated MySQL notes in migrations topic.
Backport of d4c583682e7afc2b4e953b8c85af17f1c1514ba9 from main
2023-12-20 21:02:51 +01:00
Amin Shah Gilani
d8bff5adda [5.0.x] Doc'd that users with unusable passwords cannot request a password reset.
Backport of 47033bfd486206d6809068c838d45b999e5c1bd2 from main
2023-12-19 14:05:01 -03:00
Viicos
6bf8ca7b16 [5.0.x] Added missing import in docs/ref/models/expressions.txt.
Backport of e28bd6776dfedc1ad4dce4719e4303ca34019a83 from main
2023-12-15 11:17:32 +01:00
Christian Clauss
ae35d5178b [5.0.x] Updated examples for 2.0+ release numbering in installation FAQ.
Backport of 0d5e9a32eb5bd1201437519a3bda1fb4c4d06af9 from main
2023-12-15 06:17:02 +01:00
David Sanders
58274bbd37 [5.0.x] Added clarifications about the DATABASES.TIME_ZONE setting in docs.
These include:
 - Doc'd which is the default used when DATABASES.TIME_ZONE is None.
 - Doc'd that the database connection's time zone setting is set for
   PostgreSQL and clarified that it may be necessary to set it to the
   same value as TIME_ZONE.

Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of acfc7e3a735ffa41dcd9ad7f4f8fef97c1a2c3c6 from main
2023-12-14 14:38:25 -03:00
Nanami
b73510902f [5.0.x] Fixed HTML code snippet in Tutorial's part 7 when customizing the admin's site header.
Backport of 5b52376d9f55fa7889f39225e6035c6d69168b71 from main
2023-12-14 10:11:20 -03:00
Emanuel Andrecut
636d701ded [5.0.x] Fixed #35032 -- Corrected Char32UUIDField implementation in 5.0 release notes.
This fixes Char32UUIDField implementation in 5.0 release notes causing
records with UUIDFields created using pre-Django 5.0 and CHAR(32) not
being able to be saved anymore after upgrading and keeping the CHAR(32)
columns.

Regression in 7cd187a5ba58d7769039f487faeb9a5a2ff05540.

Backport of e72b2826ff1eaf2f48ee54a40d2f2988a1fdbb0a from main
2023-12-14 10:31:36 +01:00
Tom Carrick
8b0710cfc9 [5.0.x] Fixed #35012 -- Restored wrapping admin fieldsets with multiple fields per line.
Thanks James Gillard for the report.

Regression in 729266c6f29c7a0677b24926a86a767ef3078b26.

Backport of 4aae864463b149393a36e0b18345cf6ed392634d from main
2023-12-13 12:34:19 +01:00
Mariusz Felisiak
5f89da0837 [5.0.x] Fixed #35018 -- Fixed migrations crash on GeneratedField with BooleanField as output_field on Oracle < 23c.
Thanks Václav Řehák for the report.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.

Backport of fcf95e592774a6ededec35481a2061474d467a2b from main.
2023-12-12 05:41:38 +01:00