Skip to content
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f529a1f commit bc65445e8d311093d2b2142f81d1554b55bfe822 @malcolmt malcolmt committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/newforms/
5 django/newforms/
@@ -5,7 +5,6 @@
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 @@ def __unicode__(self):
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):

0 comments on commit bc65445

Please sign in to comment.
Something went wrong with that request. Please try again.