Ticket #11422: checkboxselectmultiple.patch
File checkboxselectmultiple.patch, 721 bytes (added by , 15 years ago) |
---|
-
django/forms/widgets.py
592 592 option_value = force_unicode(option_value) 593 593 rendered_cb = cb.render(name, option_value) 594 594 option_label = conditional_escape(force_unicode(option_label)) 595 output.append(u'<li> <label%s>%s %s</label></li>' % (label_for, rendered_cb, option_label))595 output.append(u'<li>%(cb)s<label%(for)s>%(label)s</label></li>' % {"for": label_for, "label": option_label, "cb": rendered_cb}) 596 596 output.append(u'</ul>') 597 597 return mark_safe(u'\n'.join(output)) 598 598