fix order of tags and change code for id

This commit is contained in:
Cayo Puigdefabregas 2022-01-12 20:45:49 +01:00
parent 97f450a07c
commit 2cfe8a44c6
1 changed files with 2 additions and 2 deletions

View File

@ -222,8 +222,8 @@
<td>{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}</td>
<td>{{ dev.devicehub_id }}</td>
<td>
{% 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 %}
</td>
<td>{% if dev.status %}{{ dev.status }}{% endif %}</td>