Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9294 -- Removed a (harmless) double conversion to unicode in o…

…ne form

widget. Patch from nkilday.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e1b7211083f6b1b8a4bc5c9f391c416b2ab5b7ab 1 parent 0995b63
@malcolmt malcolmt authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  django/forms/widgets.py
View
1  django/forms/widgets.py
@@ -281,7 +281,6 @@ def __init__(self, attrs=None):
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))))
Please sign in to comment.
Something went wrong with that request. Please try again.