Ticket #6215: mark_safe-multiwidget.patch

File mark_safe-multiwidget.patch, 591 bytes (added by Luper Rouch, 16 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