{% load widget_tweaks %} {% csrf_token %} {% for field in form.visible_fields %} {% with widget_type=field|widget_type %}