{# a single row in a table of file attachments with hx-delete and hx-patch (edit label) #} {% load attachments_tags permission_tags %} {% for attachment in object|attachment_set %} Download {{ attachment.label }}
{% csrf_token %}
{% if request.user|can_delete_attachment:attachment %} {% attachment_delete_link attachment %} {% endif %} {% endfor %}