{% load thumbnail %}
{{ form.image }}
{% if form.tmp_tmb.value %} {% else %} {% if form.image.value %} {% thumbnail form.image.value "300x240" format="PNG" as img %} {% endthumbnail %} {% endif %} {% endif %} {% csrf_token %} {{ form.id }}