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

13555 Commits

Author SHA1 Message Date
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
Sarah Boyce
03af8fbd0f [5.0.x] Fixed #35019 -- Fixed save() on models with both GeneratedFields and ForeignKeys.
Thanks Deb Kumar Das for the report.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.

Backport of b287af5dc954628d4b336aefc5027b2edceee64b from main
2023-12-08 12:09:56 +01:00
Yashas
6c992dc003 [5.0.x] Fixed #35016 -- Doc'd that DATABASES["OPTIONS"] are passed to new PostgreSQL connections.
Backport of eeb2119985d9879b1d9ac3730ea0b53c0c019221 from main
2023-12-08 09:38:54 +01:00
Mariusz Felisiak
415a08a528 [5.0.x] Fixed #35024 -- Fixed model instance creation crash on GeneratedField.output_field with backend converters.
Regression in d9de74141e8a920940f1b91ed0a3ccb835b55729.

This is a long standing issue, however it caused a crash of
GeneratedFields for all output fields that have backend-specific
converters when the RETURNING clause is not supported
(MySQL and SQLite < 3.35).
That's why severity was exacerbated.
Backport of 5b3b791e9046461901df3898be8544e14d91b931 from main
2023-12-07 20:50:48 +01:00
Sarah Boyce
454fd50efb [5.0.x] Fixed #35020 -- Fixed ModelAdmin.lookup_allowed() for non-autofield primary keys.
Thanks Joshua Goodwin for the report.

Regression in 45ecd9acca9b36093e274f47b6877a5f79108d9e.

Backport of f80669d2f5a5f1db9e9b73ca893fefba34f955e7 from main
2023-12-07 08:44:59 +01:00
Mariusz Felisiak
da2475a217 [5.0.x] Added stub release notes for 4.2.9.
Backport of 464af0975cac6abc46b3e5c3305194c958fc465b from main
2023-12-05 06:11:44 +01:00
Mariusz Felisiak
a1ddda7ac2 [5.0.x] Updated expected release date for 5.0.1.
Backport of 689306c745f996cf358196f77748a4e91502987c from main
2023-12-05 06:03:44 +01:00
Natalia
cd4beb995c [5.0.x] Added stub release notes for 5.0.1.
Backport of 14884b6be89963c8ceb2c9da459ed8421aea3bf8 from main
2023-12-04 10:23:51 -03:00
Natalia
94914b550d [5.0.x] Finalized release notes for Django 5.0.
Backport of 1994a2643881a9e3f9fa8d3e0794c1a9933a1831 from main
2023-12-04 09:55:28 -03:00
Mariusz Felisiak
e4d7cc3eae [5.0.x] Added release date for 4.2.8.
Backport of 8fcb9f1f106cf60d953d88aeaa412cc625c60029 from main
2023-12-04 09:25:37 +01:00
Adrien
b8a476b745 [5.0.x] Improved wording in auth.models.User field docs.
Co-authored-by: Lily Foote <code@lilyf.org>

Backport of 79099a7ba454581ab521fcb4ea61fc6ed3dccf26 from main
2023-12-01 11:28:37 +01:00
Mariusz Felisiak
7f1dc67f53 [5.0.x] Fixed #35006 -- Fixed migrations crash when altering Meta.db_table_comment on SQLite.
Thanks Юрий for the report.

Regression in 78f163a4fb3937aca2e71786fbdd51a0ef39629e.
Backport of 37fc832a54ad37e75a898a2c8f9ab0820617c4af from main
2023-11-30 10:11:02 +01:00
Mark Walker
a4a0f66570 [5.0.x] Improved structure of Contributing Guide start page.
Backport of 6ab0f8ae52ae63808071be90ac48b39d3c75bc98 from main
2023-11-30 09:32:34 +01:00
KimSia Sim
b4a29210cf [5.0.x] Updated conditions to retrieve primary keys in bulk_create() docs.
Backport of c9ce764f59c1e809b210337980ae10c4b1d0f9be from main.
2023-11-29 13:00:32 +01:00
Adam Johnson
0216d82066 [5.0.x] Removed link to lawrence.com in contrib.sites docs.
lawrence.com has since become a redirect to LJWorld.com,
making the link pointless.
Backport of 9e7ac5890147a8271eb5eb19bb88ab93dadc6c6d from main
2023-11-28 20:11:48 +01:00
Mariusz Felisiak
92af3d4d23 [5.0.x] Refs #34380 -- Added FORMS_URLFIELD_ASSUME_HTTPS transitional setting.
This allows early adoption of the new default "https".

Backport of a4931cd75a1780923b02e43475ba5447df3adb31 from main.
2023-11-28 20:08:10 +01:00
Tom Carrick
432bfa2615 [5.0.x] Fixed #34982 -- Fixed admin's read-only password widget and help texts alignment for tablet screen size.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 729266c6f29c7a0677b24926a86a767ef3078b26 from main
2023-11-27 15:20:22 -03:00
Mariusz Felisiak
cbd1e913ef [5.0.x] Fixed #34978, Refs #31331 -- Added backward incompatibility note about raw aggregations on MySQL.
Thanks Matthew Somerville for the report.

Backport of a652f0759651dd7103ed04336ef85dc410f680c1 from main
2023-11-27 12:45:23 -03:00
Nathaniel Conroy
d9ba8fa397 [5.0.x] Fixed #34992 -- Fixed DatabaseFeatures.allows_group_by_selected_pks on MariaDB with ONLY_FULL_GROUP_BY sql mode.
Regression in 041551d716b69ee7c81199eee86a2d10a72e15ab.

Backport of 0257426fe1fe9d146fd5813f09d909917ff59360 from main
2023-11-27 10:34:42 +01:00
Adam Johnson
4c74dff759 [5.0.x] Refs #34380 -- Improved docs for forms.URLField.assume_scheme.
Backport of 0203771b626c27c1af24cdeb0e425ccca3d19ad5 from main
2023-11-25 18:53:34 +01:00
Tom Carrick
4d33816ca6 [5.0.x] Fixed #34994 -- Fixed checkbox layout in admin's change page for narrow screen widths.
Regression in d687febce5868545f99974d2499a91f81a32fef5.

Backport of a89c715c3bcf7ab1a90747cf8658ebce6304b6e4 from main
2023-11-23 16:56:29 -03:00
Tom Carrick
15d49c8082 [5.0.x] Fixed #34991 -- Fixed pagination links and input layout in admin's change list page when using list_editable.
Regression in b4817d20b9e55df30be0b1b2ca8c8bb6d61aab07.

Thanks Tom Carrick for the report and fix.

Backport of 4eb9c3d90aff55182151b6be0122f7d0b28832fd from main
2023-11-23 10:23:31 -03:00
Simon Charette
95dec210e8 [5.0.x] Fixed #34987 -- Fixed queryset crash when mixing aggregate and window annotations.
Regression in f387d024fc75569d2a4a338bfda76cc2f328f627.

Just like `OrderByList` the `ExpressionList` expression used to wrap
`Window.partition_by` must implement `get_group_by_cols` to ensure the
necessary grouping when mixing window expressions with aggregate
annotations is performed against the partition members and not the
partition expression itself.

This is necessary because while `partition_by` is implemented as
a source expression of `Window` it's actually a fragment of the WINDOW
expression at the SQL level and thus it should result in a group by its
members and not the sum of them.

Thanks ElRoberto538 for the report.
Backport of e76cc93b0168fa3abbafb9af1ab4535814b751f0 from main
2023-11-23 06:09:58 +01:00
Tim Schilling
06bdf62b56 [5.0.x] Fixed #34990 -- Changed link to OWASP in CSRF docs.
The OWASP site is the standard resource for web application
security information.
Backport of aceee39d44994df20d13104e55ae61845d7a1e95 from main
2023-11-23 05:28:15 +01:00
Thibaud Colas
6692b0ecce [5.0.x] Added VoiceOver iOS and macOS separately in admin FAQ.
Follow up to 6daf86058bb6fb922eb3fe3abae6f5c0e645020c.
Backport of a2769a68ea27242dc70ec7734c4ed38932fe46da from main
2023-11-21 05:46:49 +01: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
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
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
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