Ticket #7422: widgets.py.diff
File widgets.py.diff, 732 bytes (added by , 16 years ago) |
---|
-
newforms/widgets.py
367 367 cb = CheckboxInput(final_attrs, check_test=lambda value: value in str_values) 368 368 option_value = force_unicode(option_value) 369 369 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, 371 371 conditional_escape(force_unicode(option_label)))) 372 372 output.append(u'</ul>') 373 373 return mark_safe(u'\n'.join(output))