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 45ecd9acca
.
Backport of f80669d2f5
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 464af0975c
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 689306c745
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 14884b6be8
from main
2023-12-04 10:23:51 -03:00
Natalia
a2b1b10f8b
[5.0.x] Post-release version bump.
2023-12-04 10:16:11 -03:00
Natalia
617bcf611f
[5.0.x] Bumped version for 5.0 release.
2023-12-04 10:01:51 -03:00
Natalia
94914b550d
[5.0.x] Finalized release notes for Django 5.0.
...
Backport of 1994a26438
from main
2023-12-04 09:55:28 -03:00
Natalia
8e1b820fa1
[5.0.x] Updated translations from Transifex.
2023-12-04 08:17:21 -03:00
Mariusz Felisiak
e4d7cc3eae
[5.0.x] Added release date for 4.2.8.
...
Backport of 8fcb9f1f10
from main
2023-12-04 09:25:37 +01:00
Peter Thomassen
cb013fc7d9
[5.0.x] Fixed #35002 -- Made UniqueConstraints with fields respect nulls_distinct.
...
Regression in 595a2abb58
.
Backport of 54cb1a7e16
from main
2023-12-03 14:12:39 +01:00
Tom Carrick
6c502734a0
[5.0.x] Fixed #35001 -- Fixed position of related widget action icons in admin for some screen sizes.
...
Backport of dec8aa68f6
from main
2023-12-01 10:03:55 -03:00
Adrien
b8a476b745
[5.0.x] Improved wording in auth.models.User field docs.
...
Co-authored-by: Lily Foote <code@lilyf.org>
Backport of 79099a7ba4
from main
2023-12-01 11:28:37 +01:00
Tom Carrick
471fa926ea
[5.0.x] Fixed #34995 -- Improved position of related widget's add link on admin pages on small screens.
...
Regression in 1699f8b52a
.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>
Backport of 999ba9db6d
from main
2023-11-30 17:09:55 -03:00
Sarah Boyce
9fe12b0f36
[5.0.x] Refs #34995 -- Made Selenium tests more robust for admin_views and admin_widgets suites.
...
Depending on screen sizes, the selenium tests that would "click" or interact
with an element outside the scope of the visible window would produce test
failures (raising ElementNotInteractableException in CI runs).
This branch switches those to using ActionChains, which ensures that the click
(or other interaction) is performed only after successfully completing the
move to the relevant element.
Co-authored-by: Tom Carrick <tom@carrick.eu>
Backport of af2fd36815
from main
2023-11-30 17:09:09 -03: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 78f163a4fb
.
Backport of 37fc832a54
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 6ab0f8ae52
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 c9ce764f59
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 9e7ac58901
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 a4931cd75a
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 729266c6f2
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 a652f07596
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 041551d716
.
Backport of 0257426fe1
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 0203771b62
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 d687febce5
.
Backport of a89c715c3b
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 b4817d20b9
.
Thanks Tom Carrick for the report and fix.
Backport of 4eb9c3d90a
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 f387d024fc
.
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 e76cc93b01
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 aceee39d44
from main
2023-11-23 05:28:15 +01:00
Mariusz Felisiak
48eebdc63c
[5.0.x] Fixed #34985 -- Fixed GeneratedFields.contribute_to_class() crash when apps are not populated.
...
Thanks Paolo Melchiorre for the report.
Regression in f333e3513e
.
Backport of 101a85a5a0
from main
2023-11-22 13:49:59 +01:00
Sarah Boyce
0c6ca52226
[5.0.x] Fixed #34984 -- Skipped GeneratedFields when remaking tables on SQLite.
...
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.t
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Backport of 828082dad9
from main
2023-11-22 13:27:40 +01:00
Thibaud Colas
6692b0ecce
[5.0.x] Added VoiceOver iOS and macOS separately in admin FAQ.
...
Follow up to 6daf86058b
.
Backport of a2769a68ea
from main
2023-11-21 05:46:49 +01:00
Natalia Bidart
e61ae5e106
[5.0.x] Bumped version for 5.0 release candidate 1.
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 ecfea054ee
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 f955c90488
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 b181cae2e3
.
Refs #25307 .
Thanks Sergey Nesterenko for the report.
Backport of 7530cf3900
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 594873befb
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 6daf86058b
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 292f1ea90f
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 61c305f298
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 36ed45d27c
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 640283711e
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 c705625ebf
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 f333e3513e
.
Backport of 5875f03ce6
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 8b1acc0440
.
Backport of de4884b114
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 1b56b24f81
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 f7389c4b07
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 427f0ed98d
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 f333e3513e
.
Backport of 8b1acc0440
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 7414704e88
.
Backport of 8a28e983df
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 bc91f27a86
that began manifesting in 7414704e88
.
Backport of 656192c2c9
from main
2023-11-03 16:29:49 +01:00