Changeset 5447
- Timestamp:
- 06/09/07 09:44:27 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/django/oldforms/__init__.py
r5400 r5447 4 4 from django.conf import settings 5 5 from django.utils.translation import ugettext, ungettext 6 from django.utils.encoding import smart_unicode, smart_str6 from django.utils.encoding import smart_unicode, force_unicode, smart_str 7 7 8 8 FORM_FIELD_ID_PREFIX = 'id_' … … 172 172 def __unicode__(self): 173 173 "Renders the field" 174 return self.formfield.render(self.data)174 return force_unicode(self.formfield.render(self.data)) 175 175 176 176 def __repr__(self):
