Ticket #7422: widgets.py.2.diff
File widgets.py.2.diff, 806 bytes (added by , 16 years ago) |
---|
-
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 for_attr = '' 371 if has_id: 372 for_attr = ' for="%s"' % ( cb.attrs['id'], ) 373 output.append(u'<li><label%s>%s %s</label></li>' % ( for_attr, rendered_cb, 371 374 conditional_escape(force_unicode(option_label)))) 372 375 output.append(u'</ul>') 373 376 return mark_safe(u'\n'.join(output))