From 54b8277ffb4cad90fb65ca4edf69d8279b8df898 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 9 Jan 2007 03:37:22 +0000 Subject: [PATCH] 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 --- django/newforms/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.