{% load widget_tweaks %} {# Generic input snippet used by most of the field types #}
{{ field.label_tag }}{% if field.field.required %} *{% endif %} {% if field.help_text %}{{ field.help_text }}{% endif %} {% if field.errors %} {% with aria_describedby="aria-describedby:"|add:field.auto_id|add:"-desc-error" %} {{ field|attr:"aria-invalid:true"|attr:aria_describedby }} {% endwith %} {% else %} {{ field }} {% endif %} {% if field.errors %}
{{ field.errors }}
{% endif %}