1
0
mirror of https://github.com/django/django.git synced 2025-01-12 19:37:06 +00:00
django/docs/topics
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
..
auth [5.0.x] Fixed #34970 -- Clarified Password Validation docs regarding the password_changed callback. 2023-11-15 21:52:11 -03:00
class-based-views
db [5.0.x] Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt. 2023-10-30 13:49:12 -03:00
forms [5.0.x] Refs #32819 -- Used auto_id instead of id_for_label as unique identifier for the field. 2023-11-16 13:27:18 +01:00
http Refs #31949 -- Made make_middleware_decorator to work with async functions. 2023-09-13 11:41:01 +02:00
i18n
testing [5.0.x] Fixed #32602 -- Clarified wording of TestCase class. 2023-10-02 11:49:00 +02:00
async.txt Refs #31949 -- Made make_middleware_decorator to work with async functions. 2023-09-13 11:41:01 +02:00
cache.txt [5.0.x] Added missing pycon directives in various docs. 2023-10-25 12:27:56 +02:00
checks.txt [5.0.x] Doc'd writing integration tests for the system check framework. 2023-10-27 11:44:40 +02:00
conditional-view-processing.txt
email.txt
external-packages.txt
files.txt
index.txt
install.txt
logging.txt
migrations.txt Fixed #34822 -- Added support for serializing functions decorated with functools.lru_cache in migrations. 2023-09-13 15:57:18 -03:00
pagination.txt
performance.txt
security.txt
serialization.txt
settings.txt
signals.txt
signing.txt
templates.txt