{% load crispy_forms_tags %}
{% csrf_token %} {% if form %} {{ form|crispy }} {% elif formset %} {{ formset|crispy }} {% endif %}