From 553a20075e6991e7a60baee51ea68c8adc520d9a Mon Sep 17 00:00:00 2001
From: Malcolm Tredinnick
Date: Sat, 23 Jun 2007 06:19:26 +0000
Subject: [PATCH] Fixed #4527 -- Changed the way errors are displayed in
Form.as_p() to avoid invalid XHTML constructs. Based on a patch from
SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
---
django/newforms/forms.py | 2 +-
tests/regressiontests/forms/tests.py | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/django/newforms/forms.py b/django/newforms/forms.py
index 6ebebded4b..1ea1c73d9a 100644
--- a/django/newforms/forms.py
+++ b/django/newforms/forms.py
@@ -159,7 +159,7 @@ class BaseForm(StrAndUnicode):
def as_p(self):
"Returns this form rendered as HTML