{% load crispy_forms_filters %} {% load l10n %}
{% for choice in field.field.choices %}
{% if field.errors and forloop.last and not inline_class %} {% include 'bootstrap5/layout/field_errors_block.html' %} {% endif %}
{% endfor %} {% if field.errors and inline_class %} {% for error in field.errors %}

{{ error }}

{% endfor %} {% endif %} {% include 'bootstrap5/layout/help_text.html' %}