Ticket #3597: unicodedecodenewormsforms.diff
File unicodedecodenewormsforms.diff, 684 bytes (added by , 18 years ago) |
---|
-
forms.py
227 227 value = self.as_widget(self.field.widget) 228 228 if not isinstance(value, basestring): 229 229 # Some Widget render() methods -- notably RadioSelect -- return a 230 # "special" object rather than a string. Call the __ str__() on that230 # "special" object rather than a string. Call the __unicode__() on that 231 231 # object to get its rendered value. 232 value = value.__ str__()232 value = value.__unicode__() 233 233 return value 234 234 235 235 def _errors(self):