summaryrefslogtreecommitdiff
path: root/django/forms/boundfield.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/boundfield.py')
-rw-r--r--django/forms/boundfield.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py
index 4d3cd88660..c0324d5c1d 100644
--- a/django/forms/boundfield.py
+++ b/django/forms/boundfield.py
@@ -305,6 +305,8 @@ class BoundField(RenderableFieldMixin):
if self.auto_id and not self.is_hidden:
if self.help_text:
aria_describedby.append(f"{self.auto_id}_helptext")
+ if self.errors:
+ aria_describedby.append(f"{self.auto_id}_error")
return " ".join(aria_describedby)
@property