{% for attachment in attachments %} {% if attachment.image %}
  • {% else %}
  • {{ attachment.file.url }}
  • {% endif %} {% endfor %}