{# @description Renders a Django form's fields, honouring its crispy-forms helper when it has one. #} {% load crispy_forms_tags %} {% load tailwind_filters %} {% comment %} A form with a helper must use the crispy tag rather than the filter, and the helper must set form_tag = False or the tag renders a nested
. {% endcomment %} {% if form.helper %} {% crispy form %} {% else %} {{ form|crispy }} {% endif %}