{% load widget_tweaks %} {# Generic input snippet used by most of the field types #}
{% 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 %}