diff options
| author | David Smith <smithdc@gmail.com> | 2021-11-05 08:11:25 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-11-05 11:05:52 +0100 |
| commit | c6c6cd3c5ad9c36795bb120e521590424f034ae4 (patch) | |
| tree | 54e6978fbd2533013a9e6053b9e936b124b63cf2 /django/forms | |
| parent | 2c01ebb4be5d53cbf6450f356c10e436025d6d07 (diff) | |
Fixed #33235 -- Removed "for = ..." from MultiWidget's <label>.
This improves accessibility for screen reader users.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 00c19e2c55..386b0e7c3f 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -849,9 +849,7 @@ class MultiWidget(Widget): return context def id_for_label(self, id_): - if id_: - id_ += '_0' - return id_ + return '' def value_from_datadict(self, data, files, name): return [ |
