{% for object in objects %} {% if object.digital_image %} {% endif %} {% endfor %}

{{ body|safe }}