{% load i18n rest_framework %} {% translate "None" as none_choice %}
{% if field.label %} {% endif %}
{% for key, text in field.choices|items %}
{% if field.label %} {% endif %}
{% endfor %} {% if field.errors %} {% for error in field.errors %} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}