From 2cfe8a44c6f8316552452d306c95ea6db457ba90 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 12 Jan 2022 20:45:49 +0100 Subject: [PATCH] fix order of tags and change code for id --- ereuse_devicehub/templates/inventory/device_list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index dc0cb4d0..79d01a40 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -222,8 +222,8 @@ {{ dev.type }} {{ dev.manufacturer }} {{ dev.model }} {{ dev.devicehub_id }} - {% for t in dev.tags %} - {{ t.code }}{% if not loop.last %},{% endif %} + {% for t in dev.tags | sort(attribute="id") %} + {{ t.id }}{% if not loop.last %},{% endif %} {% endfor %} {% if dev.status %}{{ dev.status }}{% endif %}