Ticket #6036: multiwidget_render_fix.diff

File multiwidget_render_fix.diff, 586 bytes (added by David Tulig, 17 years ago)
  • django/newforms/widgets.py

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