Cleaned up [4924]. Sorry; wasn't concentrating enough.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-04-04 13:57:14 +00:00
parent f529a1f12e
commit bc65445e8d
1 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ Form classes
from django.utils.datastructures import SortedDict, MultiValueDict from django.utils.datastructures import SortedDict, MultiValueDict
from django.utils.html import escape from django.utils.html import escape
from django.utils.encoding import StrAndUnicode from django.utils.encoding import StrAndUnicode
from django.conf import settings
from fields import Field from fields import Field
from widgets import TextInput, Textarea, HiddenInput, MultipleHiddenInput from widgets import TextInput, Textarea, HiddenInput, MultipleHiddenInput
from util import flatatt, ErrorDict, ErrorList, ValidationError from util import flatatt, ErrorDict, ErrorList, ValidationError
@ -229,9 +228,9 @@ class BoundField(StrAndUnicode):
value = self.as_widget(self.field.widget) value = self.as_widget(self.field.widget)
if not isinstance(value, basestring): if not isinstance(value, basestring):
# Some Widget render() methods -- notably RadioSelect -- return a # 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. # object to get its rendered value.
value = value.__unicode__() value = unicode(value)
return value return value
def _errors(self): def _errors(self):