{% load widget_tweaks %} {% csrf_token %} {% for field in form %} {% with widget=field|widget_type %} {% if widget == "checkboxinput" %}