Replace ifnotequal with if

ifequal and ifnotequal are deprecated in Django 4.0
This commit is contained in:
Amélie Krejčí 2023-09-25 14:40:22 +02:00
parent 1b2b3a3bce
commit 53d1407483
No known key found for this signature in database
GPG Key ID: 65B7BB4B1A0D9402
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
{% ifnotequal volume.type "iso" %}
{% if volume.type != "iso" %}
<button class="btn btn-sm btn-secondary" data-bs-toggle="modal" data-bs-target="#Clone{{ forloop.counter }}" title="{% trans "Clone" %}">
{% bs_icon 'files' %}
</button>
@ -168,7 +168,7 @@
<button class="btn btn-sm btn-secondary disabled">
{% bs_icon 'files' %}
</button>
{% endifnotequal %}
{% endif %}
</td>
<td>
<form action="" method="post" role="form" aria-label="Delete volume form">{% csrf_token %}