{% comment %} Image upload field with a preview: the current image as a thumbnail linked to the full file, then the stock clearable file input. {% endcomment %} {% load i18n %}
{% if widget.image_url %} {% translate 'Preview' %} {% else %} {% translate 'No image' %} {% endif %} {% include "django/forms/widgets/clearable_file_input.html" %}