diff --git a/django/oldforms/__init__.py b/django/oldforms/__init__.py index 4a516e2395..d0f9aca62a 100644 --- a/django/oldforms/__init__.py +++ b/django/oldforms/__init__.py @@ -3,7 +3,7 @@ from django.core.exceptions import PermissionDenied from django.utils.html import escape from django.conf import settings from django.utils.translation import ugettext, ungettext -from django.utils.encoding import smart_unicode, smart_str +from django.utils.encoding import smart_unicode, force_unicode, smart_str FORM_FIELD_ID_PREFIX = 'id_' @@ -171,7 +171,7 @@ class FormFieldWrapper(object): def __unicode__(self): "Renders the field" - return self.formfield.render(self.data) + return force_unicode(self.formfield.render(self.data)) def __repr__(self): return '' % self.formfield.field_name