Fixed #9294 -- Removed a (harmless) double conversion to unicode in one form
widget. Patch from nkilday. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0995b63b77
commit
e1b7211083
|
@ -281,7 +281,6 @@ class Textarea(Widget):
|
||||||
|
|
||||||
def render(self, name, value, attrs=None):
|
def render(self, name, value, attrs=None):
|
||||||
if value is None: value = ''
|
if value is None: value = ''
|
||||||
value = force_unicode(value)
|
|
||||||
final_attrs = self.build_attrs(attrs, name=name)
|
final_attrs = self.build_attrs(attrs, name=name)
|
||||||
return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs),
|
return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs),
|
||||||
conditional_escape(force_unicode(value))))
|
conditional_escape(force_unicode(value))))
|
||||||
|
|
Loading…
Reference in New Issue