From c5a2bd35b702f5c83f5cad8147d838a037143ec3 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 17 Jun 2019 14:41:23 +0200 Subject: [PATCH] Devices list: Correctly use revoked parameter --- .../control/templates/pretixcontrol/organizers/devices.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/organizers/devices.html b/src/pretix/control/templates/pretixcontrol/organizers/devices.html index 9edfb6a24..49c98b931 100644 --- a/src/pretix/control/templates/pretixcontrol/organizers/devices.html +++ b/src/pretix/control/templates/pretixcontrol/organizers/devices.html @@ -58,9 +58,9 @@ {{ d.device_id }} - {% if d.initialized and not d.api_token %}{% endif %} + {% if d.revoked %}{% endif %} {{ d.name }} - {% if d.initialized and not d.api_token %}{% endif %} + {% if d.revoked %}{% endif %} {{ d.hardware_brand|default_if_none:"" }} {{ d.hardware_model|default_if_none:"" }} @@ -74,7 +74,7 @@ {% else %} {% trans "Not yet initialized" %} {% endif %} - {% if d.initialized and not d.api_token %} + {% if d.revoked %} {% trans "Revoked" %} {% endif %}