I have a form with checkboxes that works fine, but when the user submits the form with errors and my checkbox is checked I need to change div class which holds the checkbox. So
Work for me:
{% for foo in form.tags %} {% endfor %}
That:
{% if foo.choice_value in foo.value %}checked="checked"{% endif %}