{% url 'content-permalink' association.pk as permalink %} {% if content.image %} {% endif %}