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

32099 Commits

Author SHA1 Message Date
Natalia Bidart
e61ae5e106 [5.0.x] Bumped version for 5.0 release candidate 1. 5.0rc1 2023-11-20 09:24:16 -03:00
Natalia Bidart
efd6cbfadf [5.0.x] Updated man page for Django 5.0 rc1. 2023-11-20 08:46:20 -03:00
Mariusz Felisiak
f721fb937c [5.0.x] Refs #34118 -- Doc'd Python 3.12 compatibility in Django 4.2.x.
Backport of ecfea054ee2b8ddfa027459ff8b6aecba05facf7 from main
2023-11-19 16:33:01 +01:00
Mariusz Felisiak
c342b58243 [5.0.x] Refs #34118 -- Added Python 3.12 to classifiers and tox.ini.
Backport of f955c90488e1f32e6e38b3c956e937579d389fb2 from main
2023-11-19 16:32:55 +01:00
Simon Charette
49f1ced863 [5.0.x] Fixed #34975 -- Fixed crash of conditional aggregate() over aggregations.
Adjustments made to solve_lookup_type to defer the resolving of
references for summarized aggregates failed to account for similar
requirements for lookup values which can also reference annotations
through Aggregate.filter.

Regression in b181cae2e3697b2e53b5b67ac67e59f3b05a6f0d.

Refs #25307.

Thanks Sergey Nesterenko for the report.

Backport of 7530cf3900ab98104edcde69e8a2a415e82b345a from main
2023-11-18 16:52:54 +01:00
Mariusz Felisiak
8fb92dc96a [5.0.x] Removed obsolete warnings about asgiref.sync adapters with sensitive variables.
Django 5.0+ required asgiref 3.7+, and this warning is obsolete for
asgiref 3.7+ since
be6635e0e7.
Backport of 594873befbbec13a2d9a048a361757dd3cf178da from main
2023-11-17 12:09:58 +01:00
Thibaud Colas
0923472aa2 [5.0.x] Doc'd support for assistive technologies in the admin.
Backport of 6daf86058bb6fb922eb3fe3abae6f5c0e645020c from main
2023-11-17 11:20:54 +01:00
David Smith
7f0275d8cb [5.0.x] Refs #32819 -- Used auto_id instead of id_for_label as unique identifier for the field.
`id_for_label` is blank for widgets with multiple inputs such as radios
and multiple checkboxes. Therefore , `help_text` for fields using these
widgets cannot currently be associated using `aria-describedby`.
`id_for_label` is being used as a guard to avoid incorrectly adding
`aria-describedby` to those widgets.

This change uses `auto_id` as the unique identified for the fields
`help_text`. A guard is added to avoid incorrectly adding
`aria-describedby` to inputs by checking the widget's `use_fieldset`
attribute. Fields rendered in a `<fieldset>` should have
`aria-describedby` added to the `<fieldset>` and not every `<input>`.

Backport of 292f1ea90f90ff140617299a25884c8fda24aa64 from main
2023-11-16 13:27:18 +01:00
Markus Amalthea Magnuson
8c88ae8251 [5.0.x] Fixed #34970 -- Clarified Password Validation docs regarding the password_changed callback.
Backport of 61c305f298da1b4079a80721c861d0663dc8717e from main
2023-11-15 21:52:11 -03:00
Giannis Terzopoulos
a5ee682baf [5.0.x] Removed obsolete sentence in custom model field docs.
Backport of 36ed45d27cb97fe3a41eca219ba75ff69f16b93c from main
2023-11-15 13:49:17 +01:00
William Hayes
effd704a1c [5.0.x] Refs #33690 -- Added missing data-theme selector to example in theming support docs.
Backport of 640283711e6c8d25ad0e3c97453cd178a3e4d6a6 from main
2023-11-15 05:27:51 +01:00
Mariusz Felisiak
fcc55f8c26 [5.0.x] Refs #34944 -- Propagated system checks for GeneratedField.output_field.
Backport of c705625ebff0141ed2b95dd3c8174bda8270a47f from main
2023-11-14 20:22:41 +01:00
Mariusz Felisiak
ddbe5c86e8 [5.0.x] Fixed #34944 -- Made GeneratedField.output_field required.
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.

Backport of 5875f03ce61b85dfd9ad34f7b871c231c358d432 from main
2023-11-14 20:22:33 +01:00
Mariusz Felisiak
5b1d0a6be0 [5.0.x] Reverted "Refs #30446, Refs #34944 -- Fixed crash when adding GeneratedField with string Value()."
This reverts commit 8b1acc0440418ac8f45ba48e2dfcf5126c83341b.

Backport of de4884b114534f43c49cf8c5b7f10181e737f4e9 from main
2023-11-14 15:46:23 +01:00
nessita
7a21ea5464 [5.0.x] Fixed #34958 -- Fixed isolation of messages_tests.tests.TestLevelTags.test_lazy.
Backport of 1b56b24f81a2e64b4bd3059abad9b6fd0c801c66 from main
2023-11-13 09:38:00 +01:00
Adam Johnson
8eba6efbf0 [5.0.x] Fixed #34457 -- Restored output for makemigrations --check.
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of f7389c4b07ceeb036436e065898e411b247bca78 from main
2023-11-09 10:44:07 -03:00
Jacob Walls
97a78121b3 [5.0.x] Fixed typos in docs/ref/models/fields.txt.
Backport of 427f0ed98d7ecf4381cebd4f7773f761e2446851 from main
2023-11-09 09:58:53 +03:00
Simon Charette
73869a5163 [5.0.x] Refs #30446, Refs #34944 -- Fixed crash when adding GeneratedField with string Value().
This should allow smarter output_field inferring in functions dealing
with text expressions.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.

Backport of 8b1acc0440418ac8f45ba48e2dfcf5126c83341b from main
2023-11-08 16:18:00 +03:00
Simon Charette
0265eaa500 [5.0.x] Fixed #34946 -- Preserved db_default on combined default field addition.
Regression in 7414704e88d73dafbcfbb85f9bc54cb6111439d3.
Backport of 8a28e983df091d94eaba77cb82fbe3ef60a80799 from main
2023-11-07 13:33:24 +03:00
Mariusz Felisiak
1383dc75eb [5.0.x] Fixed #34941 -- Fixed fetching decimal db_defaults for DecimalFields on Oracle.
This is a long standing bug in bc91f27a86090b4c688b56cd4e37f95eebe6e969
that began manifesting in 7414704e88d73dafbcfbb85f9bc54cb6111439d3.
Backport of 656192c2c96bb955a399d92f381e38fe2254fe17 from main
2023-11-03 16:29:49 +01:00
Mariusz Felisiak
e2330ccd10 [5.0.x] Refs #34941 -- Skipped OperationTests.test_alter_field_change_nullable_to_decimal_database_default_not_null on Oracle.
Backport of 7a09ba0962e0eaf4ad396475b392ba3234bf60ee from main
2023-11-03 05:30:08 +01:00
David Sanders
8dde0504f3 [5.0.x] Fixed #34936 -- Fixed migration crash for DecimalField with db_default on SQLite.
CAST() must be wrapped in parentheses to be recognized as an expression on SQLite.

Regression in 7414704e88d73dafbcfbb85f9bc54cb6111439d3.

Backport of 797957fb48f63760442d3d4c8985fd94f8602d5e from main
2023-11-02 19:59:39 +01:00
Tim Graham
b735b90f43 [5.0.x] Refs #31300 -- Allowed testing GeneratedField without collation.
CockroachDB and Snowflake don't support it.

Backport of 208870b6122c4cbc39c3b2432e13db54c920db51 from main
2023-11-02 15:48:31 +01:00
Patrick Rauscher
bf8aac3679 [5.0.x] Fixed #34813 -- Doc'd usage of integrity HTML attribute with ManifestStaticFilesStorage.
Backport of 116e225266c511dfc0bfc96c8497e9c8aaa4d004 from main
2023-11-02 08:26:27 -03:00
Mariusz Felisiak
fd593db2fa [5.0.x] Added stub release notes for 4.2.8.
Backport of 36173cf29d6ad0b0f0cd24326834dddfff2db7f3 from main
2023-11-01 08:25:18 +01:00
Mariusz Felisiak
2d929dd2cc [5.0.x] Added CVE-2023-46695 to security archive.
Backport of 7caf2621833a45cdfe7e6e305e4885ecc8d79744 from main
2023-11-01 08:17:30 +01:00
Mariusz Felisiak
bb71d34551 [5.0.x] Fixed CVE-2023-46695 -- Fixed potential DoS in UsernameField on Windows.
Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report.
2023-11-01 06:18:00 +01:00
Natalia
acd4595ab0 [5.0.x] Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt.
Backport of 9b18af4f6f12b9d25157e0b5afc3dca198f6dd06 from main
2023-10-30 13:49:12 -03:00
Natalia
c8bc72462d [5.0.x] Refs #15578 -- Made cosmetic edits to fixtures docs.
Backport of b412e5645a65a632f0147e50ceecb60acd33bb4d from main
2023-10-30 10:33:08 -03:00
Tom Carrick
602835202d [5.0.x] Fixed #34932 -- Restored varchar_pattern_ops/text_pattern_ops index creation when deterministic collaction is set.
Regression in f3f9d03edf17ccfa17263c7efa0b1350d1ac9278 (4.2) and
8ed25d65ea7546fafd808086fa07e7e5bb5428fc (5.0).

Backport of 34b411762b50883d768d7b67e0a158ec39da8b09 from main
2023-10-30 11:08:03 +01:00
Mariusz Felisiak
329ae408bf [5.0.x] Fixed typo in docs/topics/forms/index.txt.
Backport of 46df3ab244e1688bd186f0bfbfea6a354097a910 from main
2023-10-30 05:17:55 +01:00
Sarah Boyce
dfdca516ea [5.0.x] Fixed typos in docs/ref/models/expressions.txt.
Backport of 8992a0489c01ac8ab7283264a315c005511323e2 from main
2023-10-28 14:22:00 +02:00
lufafajoshua
c8ac50c201 [5.0.x] Fixed #30601 -- Doc'd the need to manually revert all app state on transaction rollbacks.
Backport of aa80b357fbef46e5b6faa08d63bcfd4fe21f3776 from main
2023-10-27 23:33:16 -03:00
Marc Gibbons
4e1bb31b39 [5.0.x] Doc'd writing integration tests for the system check framework.
Backport of 8d9c0e4e244111ea3839434d8812c8573cfbf00e from main
2023-10-27 11:44:40 +02:00
Izzy Hyman
a71f611a9e [5.0.x] Fixed typo in docs/ref/contrib/gis/geos.txt.
Backport of c42250a7039a5ace1b482b30c6a1359b748cae65 from main
2023-10-27 05:32:03 +02:00
Leo Suarez
89e539488a [5.0.x] Fixed #15578 -- Stated the processing order of fixtures in the fixtures docs.
Also, added details about loading multiple fixtures and unified line wrapping
at 79 cols.

Co-Authored-By: Aniketh Babu <anikethbabu@gmail.com>
Co-Authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-Authored-By: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 334dc073b1d9c89692aa5b11d362fb1cceae7a4a from main
2023-10-26 21:51:40 -03:00
Mariusz Felisiak
415ef34c4c [5.0.x] Added missing pycon directives in various docs.
Backport of 718b32c6918037cfc746d7867333d79a3c887a8c from main
2023-10-25 12:27:56 +02:00
Tim Bell
8b18e0bb3b [5.0.x] Fixed #27403 -- Doc'd that QuerySet.prefetch_related() doesn't guarantee transactional consistency.
Added a note about the potential race condition in prefetch_related()
that could produce an inconsistent result, one that does not correspond
to any point in the database history.

Backport of ee104251c403fbac83b8475163ff2ac01c567d25 from main
2023-10-25 10:22:56 +02:00
Mariusz Felisiak
3361668ff4 [5.0.x] Added stub release notes and release date for 4.2.7, 4.1.13, and 3.2.23.
Backport of fdd1323b9c83e56184e0c992af8faf8d54327775 from main
2023-10-25 05:43:00 +02:00
Mariusz Felisiak
00805ff436 [5.0.x] Fixed #34923 -- Avoided initializing LEVEL_TAGS when importing django.contrib.messages.
Regression in b7fe36ad37fb18c4bc7932c0aec6ae4f299b9622.

Thanks James Gillard for the report.

Backport of 311718feb5f1fb9ff794bbac0cda48cfc3410de8 from main
2023-10-24 14:12:40 -03:00
Natalia
25fec8940b [5.0.x] Bumped version for 5.0 beta 1. 5.0b1 2023-10-23 15:41:31 -03:00
Nick Pope
cc5901fa8e [5.0.x] Fixed #34899 -- Added blank choice to forms' callable choices lazily.
Backport of 171f91d9ef5177850c2f12b26dd732785f6ac034 from main
2023-10-23 14:54:37 -03:00
Nick Pope
bbe90f3c00 [5.0.x] Refs #34899 -- Extracted Field.flatchoices to flatten_choices helper function.
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 74afcee234f8be989623ccc7c28b9fb97fb548f0 from main
2023-10-23 14:53:13 -03:00
Nick Pope
711c054722 [5.0.x] Refs #31262 -- Added __eq__() and __getitem__() to BaseChoiceIterator.
This makes it easier to work with lazy iterators used for callables,
etc. when extracting items or comparing to lists, e.g. during testing.

Also added `BaseChoiceIterator.__iter__()` to make it clear that
subclasses must implement this and added `__all__` to the module.

Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 07fa79ef2bb3e8cace7bd87b292c6c85230eed05 from main
2023-10-23 14:51:27 -03:00
David Sanders
08aa336af4 [5.0.x] Fixed #34903, Refs #34825 -- Made workers initialization respect empty set of used connections.
Thanks to David Smith for the investigation & patch.

Regression in 2128a73713735fb794ca6565fd5d7792293f5cfa.
Follow up to a5905b164dbf52e59fa646af9c3d523c0804d86a.

Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Backport of 68d0159b6dfce07f144045d56639c52066e8b90e from main
2023-10-23 05:42:39 +02:00
David Sanders
4dec7eded9 [5.0.x] Fixed #34921 -- Fixed crash of warning for unbound naive datetimes.
Backport of b5311ee23219cfb676e2e67667ecba1e5d363aa0 from main
2023-10-22 19:34:13 +02:00
Claire Pritchard
4979e83d08 [5.0.x] Fixed typo in docs/releases/4.2.txt.
Backport of 61cc0e6f2c5115415e70e0a7eddd59b7c2aed40d from main
2023-10-22 11:02:40 +02:00
Lance Goyke
9a5b84ba57 [5.0.x] Restructured writing documentation contributing guide.
This trims and clearly delineates the how to guide from the subsequent
explanation with additional subheadings.

These changes have been discussed with Daniele Procida
at the DjangoCon US 2023 sprints.

Backport of a680ac7d775ba1bdbbda03094a4a64596864421c from main
2023-10-21 16:56:16 +02:00
David Smith
d0c8b45d4a [5.0.x] Corrected note about using accents in writing documentation contributing guide.
Backport of 16115771020eaededb56fdfbcfec978e950b6a9a from main
2023-10-21 09:40:04 +02:00
Chris Frisina
26dddf3752 [5.0.x] Fixed #34912 -- Fixed size of back links and bookmarklet help in admindocs pages.
Backport of be8b25def45bda2e9d1b63e67a80362832bcf45d from main
2023-10-21 09:01:57 +02:00