diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-12-26 23:16:16 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-12-26 23:16:16 +0000 |
| commit | 30c2bffe17c46a1f599b3e5cf0bfcfd164f203fc (patch) | |
| tree | 548d923808bd2b03a197d47f00b683260be778b0 /django/newforms | |
| parent | 247fdc19ad256c7599f043aa49d3125d3a1f4356 (diff) | |
newforms: Changed Form.as_table() to display errors in same <td> as the field
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms')
| -rw-r--r-- | django/newforms/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/newforms/forms.py b/django/newforms/forms.py index 58d23e49e0..95d81062f0 100644 --- a/django/newforms/forms.py +++ b/django/newforms/forms.py @@ -114,7 +114,7 @@ class BaseForm(StrAndUnicode): def as_table(self): "Returns this form rendered as HTML <tr>s -- excluding the <table></table>." - return self._html_output(u'<tr><th>%(label)s</th><td>%(field)s</td></tr>', u'<tr><td colspan="2">%s</td></tr>', '</td></tr>', True) + return self._html_output(u'<tr><th>%(label)s</th><td>%(errors)s%(field)s</td></tr>', u'<tr><td colspan="2">%s</td></tr>', '</td></tr>', False) def as_ul(self): "Returns this form rendered as HTML <li>s -- excluding the <ul></ul>." |
