Changeset 4925
- Timestamp:
- 04/04/07 08:57:14 (2 years ago)
- Files:
-
- django/trunk/django/newforms/forms.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/newforms/forms.py
r4924 r4925 6 6 from django.utils.html import escape 7 7 from django.utils.encoding import StrAndUnicode 8 from django.conf import settings9 8 from fields import Field 10 9 from widgets import TextInput, Textarea, HiddenInput, MultipleHiddenInput … … 230 229 if not isinstance(value, basestring): 231 230 # Some Widget render() methods -- notably RadioSelect -- return a 232 # "special" object rather than a string. Call the __str__() on that231 # "special" object rather than a string. Call __unicode__() on that 233 232 # object to get its rendered value. 234 value = value.__unicode__()233 value = unicode(value) 235 234 return value 236 235
