1
0
mirror of https://github.com/django/django.git synced 2025-07-05 02:09:13 +00:00

[1.1.X] Fixed #13431 -- Corrected a unicode literal in select widgets. Thanks to gutworth for the report.

Backport of r13036 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2010-04-30 14:12:36 +00:00
parent 2eb832a7e6
commit 868acb3a6c

View File

@ -445,7 +445,7 @@ class Select(Widget):
options = self.render_options(choices, [value]) options = self.render_options(choices, [value])
if options: if options:
output.append(options) output.append(options)
output.append('</select>') output.append(u'</select>')
return mark_safe(u'\n'.join(output)) return mark_safe(u'\n'.join(output))
def render_options(self, choices, selected_choices): def render_options(self, choices, selected_choices):