From bc65445e8d311093d2b2142f81d1554b55bfe822 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 4 Apr 2007 13:57:14 +0000 Subject: [PATCH] Cleaned up [4924]. Sorry; wasn't concentrating enough. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4925 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/newforms/forms.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/django/newforms/forms.py b/django/newforms/forms.py index 5d7adfe812..1f37da91ff 100644 --- a/django/newforms/forms.py +++ b/django/newforms/forms.py @@ -5,7 +5,6 @@ Form classes from django.utils.datastructures import SortedDict, MultiValueDict from django.utils.html import escape from django.utils.encoding import StrAndUnicode -from django.conf import settings from fields import Field from widgets import TextInput, Textarea, HiddenInput, MultipleHiddenInput from util import flatatt, ErrorDict, ErrorList, ValidationError @@ -229,9 +228,9 @@ class BoundField(StrAndUnicode): value = self.as_widget(self.field.widget) if not isinstance(value, basestring): # Some Widget render() methods -- notably RadioSelect -- return a - # "special" object rather than a string. Call the __str__() on that + # "special" object rather than a string. Call __unicode__() on that # object to get its rendered value. - value = value.__unicode__() + value = unicode(value) return value def _errors(self):