{% load i18n %} {% load rest_framework %} {% trans "None" as none_choice %}
{% if field.label %} {% endif %}
{% if field.allow_null or field.allow_blank %}
{% endif %} {% for key, text in field.choices|items %}
{% endfor %} {% if field.errors %} {# A fake input to trigger the error messages as it needs to be after a valid input #} {# If it's with the last input and it's inline then the error stacks under the last input label #} {# It has no name so no data will be sent #} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}