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:
Adrian Holovaty 2006-12-07 06:10:31 +00:00
parent 300f26deff
commit 3d1ceab1aa
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class Form(StrAndUnicode):
if bf.is_hidden:
if 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:
if bf_errors:
output.append(u'<tr><td colspan="2">%s</td></tr>' % bf_errors)