summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-05 08:51:14 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-05 08:51:14 +0000
commite1b7211083f6b1b8a4bc5c9f391c416b2ab5b7ab (patch)
treeaf08e641e6f7b5aafeb3758aa7d0311e89d1d749 /django/forms/widgets.py
parent0995b63b77903297bc41b31f4762fd76563af248 (diff)
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
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 738da20d1c..c9d947bbce 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -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))))