#35892: Support Widget.use_fieldset in admin forms
-------------------------------------+-------------------------------------
Reporter: Sarah Boyce | Type:
| Cleanup/optimization
Status: new | Component:
| contrib.admin
Version: 5.0 | Severity: Normal
Keywords: accessibility | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Currently, the admin doesn't respect
[
https://docs.djangoproject.com/en/5.1/ref/forms/widgets/#django.forms.Widget.use_fieldset
Widget.use_fieldset]
When a widget has this set, the field should be rendered in a fieldset,
ideally with a legend tag (or the fieldset using `aria-labelledby`) and
have `aria-describedby` to associate the helptext to the fieldset
All admin widgets should be reviewed as to whether `use_fieldset` should
be `True`
See this PR discussion for context:
https://github.com/django/django/pull/18742#issuecomment-2460108968
--
Ticket URL: <
https://code.djangoproject.com/ticket/35892>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.