Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #9792: corrected invalid HTML in the comment form and comment p…

…review.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 92a38be9c694639cad13ffdb03f492e462932db0 1 parent f8adf99
@jacobian jacobian authored
View
2  django/contrib/comments/templates/comments/form.html
@@ -5,10 +5,10 @@
{% if field.is_hidden %}
{{ field }}
{% else %}
+ {% if field.errors %}{{ field.errors }}{% endif %}
<p
{% if field.errors %} class="error"{% endif %}
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
- {% if field.errors %}{{ field.errors }}{% endif %}
{{ field.label_tag }} {{ field }}
</p>
{% endif %}
View
2  django/contrib/comments/templates/comments/preview.html
@@ -20,10 +20,10 @@
{% if field.is_hidden %}
{{ field }}
{% else %}
+ {% if field.errors %}{{ field.errors }}{% endif %}
<p
{% if field.errors %} class="error"{% endif %}
{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
- {% if field.errors %}{{ field.errors }}{% endif %}
{{ field.label_tag }} {{ field }}
</p>
{% endif %}
Please sign in to comment.
Something went wrong with that request. Please try again.