{% macro render_form(form) %} {{ form.csrf_token }} {% for field in form %} {% if field.type == 'BooleanField'%}