summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/forms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py
index a43f80996b..d8a05e3583 100644
--- a/django/forms/forms.py
+++ b/django/forms/forms.py
@@ -199,8 +199,7 @@ class BaseForm:
for name, field in self.fields.items():
html_class_attr = ''
bf = self[name]
- # Escape and cache in local variable.
- bf_errors = self.error_class([conditional_escape(error) for error in bf.errors])
+ bf_errors = self.error_class(bf.errors)
if bf.is_hidden:
if bf_errors:
top_errors.extend(