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:
Malcolm Tredinnick 2008-10-05 08:51:14 +00:00
parent 0995b63b77
commit e1b7211083
1 changed files with 0 additions and 1 deletions

View File

@ -281,7 +281,6 @@ class Textarea(Widget):
def render(self, name, value, attrs=None):
if value is None: value = ''
value = force_unicode(value)
final_attrs = self.build_attrs(attrs, name=name)
return mark_safe(u'<textarea%s>%s</textarea>' % (flatatt(final_attrs),
conditional_escape(force_unicode(value))))