{% comment %} Override of crispy_tailwind's tailwind/layout/select.html. crispy-tailwind's own copy writes the followed by the script that configures the control — arrives as a bare select carrying the right attributes and nothing else, because the widget is never actually rendered (#337). A widget with its own template_name renders through {{ field }} instead. Every Django built-in widget's template starts "django/", so the default:"" only matters for a widget with no template_name set at all — without it, the comparison would raise or misfire for such a widget. This file must stay at this same relative path so Django's app_dirs template loader picks it up ahead of crispy_tailwind's own copy — `mvp` is listed before `crispy_tailwind` in INSTALLED_APPS. See mvp/templates/tailwind/layout/help_text.html for the same override pattern applied to a different vendored template. {% endcomment %} {% load crispy_forms_filters %} {% load tailwind_filters %} {% load l10n %} {% if field.field.widget.template_name|default:""|slice:":7" != "django/" %} {{ field }} {% else %}
{% if not field.field.widget.allow_multiple_selected %}
{% endif %}
{% endif %}