diff --git a/django/newforms/forms.py b/django/newforms/forms.py index 6859ba2a37..2730bfe4e4 100644 --- a/django/newforms/forms.py +++ b/django/newforms/forms.py @@ -64,17 +64,15 @@ class Form(object): return not bool(self.errors()) def as_table(self): - "Returns this form rendered as an HTML ." - output = u'\n'.join(['' % (pretty_name(name), BoundField(self, field, name)) for name, field in self.fields.items()]) - return '
%s:%s
\n%s\n
' % output + "Returns this form rendered as HTML s -- excluding the
." + return u'\n'.join(['%s:%s' % (pretty_name(name), BoundField(self, field, name)) for name, field in self.fields.items()]) def as_ul(self): - "Returns this form rendered as an HTML