Merge pull request #16647 from edx/jeskew/custom_template_loader_fixes

Change template's deprecated '=' comparison to '=='.
This commit is contained in:
John Eskew
2017-11-22 09:22:06 -05:00
committed by GitHub

View File

@@ -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>