templates: your must use field.html_name to construct label for attributes
This commit is contained in:
parent
03da9ee03a
commit
75f3bba280
|
@ -15,7 +15,7 @@
|
|||
{% for choice in form.all_choices %}
|
||||
{% for checkbox in field %}
|
||||
{% if checkbox.choice_value == choice %}
|
||||
<td>{{ checkbox.tag }}<label for="{{field.name}}_0">{{ field.label }}</label></td>
|
||||
<td>{{ checkbox.tag }}<label for="{{field.html_name}}_0">{{ field.label }}</label></td>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
|
Reference in New Issue