diff --git a/django/contrib/comments/templates/comments/form.html b/django/contrib/comments/templates/comments/form.html index f0da620ec0..d8e248372f 100644 --- a/django/contrib/comments/templates/comments/form.html +++ b/django/contrib/comments/templates/comments/form.html @@ -5,10 +5,10 @@ {% if field.is_hidden %} {{ field }} {% else %} + {% if field.errors %}{{ field.errors }}{% endif %} {% endif %} diff --git a/django/contrib/comments/templates/comments/preview.html b/django/contrib/comments/templates/comments/preview.html index 9f9af1352d..d3884575f5 100644 --- a/django/contrib/comments/templates/comments/preview.html +++ b/django/contrib/comments/templates/comments/preview.html @@ -20,10 +20,10 @@ {% if field.is_hidden %} {{ field }} {% else %} + {% if field.errors %}{{ field.errors }}{% endif %} {% endif %}