Ticket #6113: MultiWidget_SafeString.patch

File MultiWidget_SafeString.patch, 586 bytes (added by Martin Conte Mac Donell <Reflejo@…>, 17 years ago)
  • django/newforms/widgets.py

     
    426426            if id_:
    427427                final_attrs = dict(final_attrs, id='%s_%s' % (id_, i))
    428428            output.append(widget.render(name + '_%s' % i, widget_value, final_attrs))
    429         return self.format_output(output)
     429        return mark_safe(self.format_output(output))
    430430
    431431    def id_for_label(self, id_):
    432432        # See the comment for RadioSelect.id_for_label()
Back to Top