Ticket #9294: ticket-9294_patch.diff
File ticket-9294_patch.diff, 496 bytes (added by , 16 years ago) |
---|
-
widgets.py
281 281 282 282 def render(self, name, value, attrs=None): 283 283 if value is None: value = '' 284 value = force_unicode(value)285 284 final_attrs = self.build_attrs(attrs, name=name) 286 285 return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs), 287 286 conditional_escape(force_unicode(value))))