1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

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

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 %}