{% with formset.forms|last as form %} {% for field in form.visible_fields %} {% endfor %} {% endwith %}