From 92a38be9c694639cad13ffdb03f492e462932db0 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 7 Apr 2009 19:34:21 +0000 Subject: [PATCH] Fixed #9792: corrected invalid HTML in the comment form and comment preview. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10420 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/comments/templates/comments/form.html | 2 +- django/contrib/comments/templates/comments/preview.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %}