{{ object.caption|safe }} {% if object.image.url %} {{ object.name }} {% endif %}