{% if field.endpoints.choices %} {% for choice in field.choice_to_options_selected %} {% endfor %} {% else %} {% for choice in field.choice_tuples %} {% endfor %} {% endif %}