mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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)))) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user