Ticket #6036: multiwidget_render_fix.diff
File multiwidget_render_fix.diff, 586 bytes (added by , 17 years ago) |
---|
-
django/newforms/widgets.py
421 421 if id_: 422 422 final_attrs = dict(final_attrs, id='%s_%s' % (id_, i)) 423 423 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)) 425 425 426 426 def id_for_label(self, id_): 427 427 # See the comment for RadioSelect.id_for_label()