Ticket #7422: widgets.py.diff

File widgets.py.diff, 732 bytes (added by Adrian Ribao <aribao@…>, 7 years ago)

Diff file for widgets.py

  • newforms/widgets.py

     
    367367            cb = CheckboxInput(final_attrs, check_test=lambda value: value in str_values)
    368368            option_value = force_unicode(option_value)
    369369            rendered_cb = cb.render(name, option_value)
    370             output.append(u'<li><label>%s %s</label></li>' % (rendered_cb,
     370            output.append(u'<li><label for="%s">%s %s</label></li>' % ( cb.attrs['id'], rendered_cb,
    371371                    conditional_escape(force_unicode(option_label))))
    372372        output.append(u'</ul>')
    373373        return mark_safe(u'\n'.join(output))
Back to Top