Django

Code

Changeset 4925

Show
Ignore:
Timestamp:
04/04/07 08:57:14 (2 years ago)
Author:
mtredinnick
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/newforms/forms.py

    r4924 r4925  
    66from django.utils.html import escape 
    77from django.utils.encoding import StrAndUnicode 
    8 from django.conf import settings 
    98from fields import Field 
    109from widgets import TextInput, Textarea, HiddenInput, MultipleHiddenInput 
     
    230229        if not isinstance(value, basestring): 
    231230            # Some Widget render() methods -- notably RadioSelect -- return a 
    232             # "special" object rather than a string. Call the __str__() on that 
     231            # "special" object rather than a string. Call __unicode__() on that 
    233232            # object to get its rendered value. 
    234             value = value.__unicode__(
     233            value = unicode(value
    235234        return value 
    236235