summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-01-09 03:37:22 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-01-09 03:37:22 +0000
commit54b8277ffb4cad90fb65ca4edf69d8279b8df898 (patch)
treed03392c68cfb59ececb84b3258d569adc0ff5d8c
parentf6390e8983dd364053078cc80361cb369b667690 (diff)
newforms: Fixed Unicode issue on Python 2.3 when a BoundField's __unicode__() included non-ASCII characters. Thanks for reporting the error, Johannes Froehlich
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/newforms/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/newforms/forms.py b/django/newforms/forms.py
index d540ec8a2e..4cc6cb4ebd 100644
--- a/django/newforms/forms.py
+++ b/django/newforms/forms.py
@@ -99,7 +99,7 @@ class BaseForm(StrAndUnicode):
if errors_on_separate_row and bf_errors:
output.append(error_row % bf_errors)
label = bf.label and bf.label_tag(escape(bf.label + ':')) or ''
- output.append(normal_row % {'errors': bf_errors, 'label': label, 'field': bf})
+ output.append(normal_row % {'errors': bf_errors, 'label': label, 'field': unicode(bf)})
if top_errors:
output.insert(0, error_row % top_errors)
if hidden_fields: # Insert any hidden fields in the last row.