Ticket #9294: ticket-9294_patch.diff

File ticket-9294_patch.diff, 496 bytes (added by nkilday, 7 years ago)
  • widgets.py

     
    281281
    282282    def render(self, name, value, attrs=None):
    283283        if value is None: value = ''
    284         value = force_unicode(value)
    285284        final_attrs = self.build_attrs(attrs, name=name)
    286285        return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs),
    287286                conditional_escape(force_unicode(value))))
Back to Top