Ticket #11422: checkboxselectmultiple.patch

File checkboxselectmultiple.patch, 721 bytes (added by Jerome Leclanche, 10 years ago)

Patch

  • django/forms/widgets.py

     
    592592            option_value = force_unicode(option_value)
    593593            rendered_cb = cb.render(name, option_value)
    594594            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})
    596596        output.append(u'</ul>')
    597597        return mark_safe(u'\n'.join(output))
    598598
Back to Top