{% load crispy_forms_filters %}
{% load l10n %}

{% with current=field.value multi=field.field.widget.allow_multiple_selected %}
  <option value="{{ value|stringformat:'s' }}"
    {% if current %}
      {% if multi %}
        {% if value|stringformat:'s' in current %}selected{% endif %}
      {% else %}
        {% if current|stringformat:'s' == value|stringformat:'s' %}selected{% endif %}
      {% endif %}
    {% endif %}
  >{{ label }}</option>
{% endwith %}
