summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2022-01-27 04:00:03 +0900
committerAkihiro Motoki <amotoki@gmail.com>2022-02-04 16:27:24 +0900
commit94216e027d890868cb5b3e25b4ce37442c4fbb28 (patch)
treed5e6dff7cc7629e87e476611abfab2be74af0c12
parente4444e69790a117ef821e0a9af3dcff4e16095eb (diff)
downloadhorizon-94216e027d890868cb5b3e25b4ce37442c4fbb28.tar.gz
Address RemovedInDjango40Warning (5)
Django 3.1 deprecates {% ifequal %} template tag in favor of {% if %} as {% if %} covers all use cases. https: //docs.djangoproject.com/en/4.0/releases/3.1/#features-deprecated-in-3-1 Change-Id: Ief79fb4a08599ad94ed82f3e404620cc54a7eedf
-rw-r--r--horizon/templates/horizon/common/_data_table_table_actions.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/templates/horizon/common/_data_table_table_actions.html b/horizon/templates/horizon/common/_data_table_table_actions.html
index 44ff936f2..98f0982f5 100644
--- a/horizon/templates/horizon/common/_data_table_table_actions.html
+++ b/horizon/templates/horizon/common/_data_table_table_actions.html
@@ -4,7 +4,7 @@
{% if filter.filter_type == 'fixed' %}
<div class="table_filter btn-group" data-toggle="buttons-radio">
{% for button in filter.fixed_buttons %}
- <button name="{{ filter.get_param_name }}" type="submit" value="{{ button.value }}" class="btn btn-default{% ifequal button.value filter.filter_string %} active{% endifequal %}">
+ <button name="{{ filter.get_param_name }}" type="submit" value="{{ button.value }}" class="btn btn-default{% if button.value == filter.filter_string %} active{% endif %}">
{% if button.icon %}
<span class="fa {{ button.icon }}"></span>
{% endif %}