git-svn-id: http://code.djangoproject.com/svn/django/trunk@2321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
af33a72fb5
commit
15f57d8c55
|
@ -427,7 +427,7 @@ class SelectField(FormField):
|
||||||
selected_html = ''
|
selected_html = ''
|
||||||
if str(value) == str_data:
|
if str(value) == str_data:
|
||||||
selected_html = ' selected="selected"'
|
selected_html = ' selected="selected"'
|
||||||
output.append(' <option value="%s"%s>%s</option>' % (escape(value), selected_html, display_name))
|
output.append(' <option value="%s"%s>%s</option>' % (escape(value), selected_html, escape(display_name)))
|
||||||
output.append(' </select>')
|
output.append(' </select>')
|
||||||
return '\n'.join(output)
|
return '\n'.join(output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue