Kaydet (Commit) 12ed1893 authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

Fixed #6113 -- Added auto-escaping "safe" marking for the MultiWidget. Thanks,…

Fixed #6113 -- Added auto-escaping "safe" marking for the MultiWidget. Thanks, Martin Conte MacDonell.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 10015fae
......@@ -426,7 +426,7 @@ class MultiWidget(Widget):
if id_:
final_attrs = dict(final_attrs, id='%s_%s' % (id_, i))
output.append(widget.render(name + '_%s' % i, widget_value, final_attrs))
return self.format_output(output)
return mark_safe(self.format_output(output))
def id_for_label(self, id_):
# See the comment for RadioSelect.id_for_label()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment