templates: your must use field.html_name to construct label for attributes

This commit is contained in:
Benjamin Dauvergne 2014-04-29 16:25:58 +02:00
parent 03da9ee03a
commit 75f3bba280
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}