newforms: Same fix as [4174], except for Form.as_table()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
300f26deff
commit
3d1ceab1aa
|
@ -82,7 +82,7 @@ class Form(StrAndUnicode):
|
||||||
if bf.is_hidden:
|
if bf.is_hidden:
|
||||||
if bf_errors:
|
if bf_errors:
|
||||||
top_errors.extend(['(Hidden field %s) %s' % (name, e) for e in bf_errors])
|
top_errors.extend(['(Hidden field %s) %s' % (name, e) for e in bf_errors])
|
||||||
hidden_fields.append(str(bf))
|
hidden_fields.append(unicode(bf))
|
||||||
else:
|
else:
|
||||||
if bf_errors:
|
if bf_errors:
|
||||||
output.append(u'<tr><td colspan="2">%s</td></tr>' % bf_errors)
|
output.append(u'<tr><td colspan="2">%s</td></tr>' % bf_errors)
|
||||||
|
|
Loading…
Reference in New Issue