Code

Ticket #9294: ticket-9294_patch.diff

File ticket-9294_patch.diff, 496 bytes (added by nkilday, 6 years ago)
Line 
1Index: widgets.py
2===================================================================
3--- widgets.py  (revision 9076)
4+++ widgets.py  (working copy)
5@@ -281,7 +281,6 @@
6 
7     def render(self, name, value, attrs=None):
8         if value is None: value = ''
9-        value = force_unicode(value)
10         final_attrs = self.build_attrs(attrs, name=name)
11         return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs),
12                 conditional_escape(force_unicode(value))))