Skip to content
Snippets Groups Projects
Commit 6777e366 authored by John Eskew's avatar John Eskew
Browse files

Change template's deprecated '=' comparison to '=='.

parent 1e09a548
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@
<td class="attachment-actions">
{% if attachment|can_write:user %}
{% if not attachment.current_revision.deleted %}
{% if 'attachment.article = article' %}
{% if attachment.article == article %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn btn-danger">{% trans "Delete" %}</a>
{% else %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Detach" %}</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment