{% if "checkbox" in field.field.widget.attrs.class %} {% else %} {{ field }} {% endif %} {% for error in field.errors %} {{ error }} {% endfor %}