fix order of tags and change code for id
This commit is contained in:
parent
97f450a07c
commit
2cfe8a44c6
|
@ -222,8 +222,8 @@
|
||||||
<td>{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}</td>
|
<td>{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}</td>
|
||||||
<td>{{ dev.devicehub_id }}</td>
|
<td>{{ dev.devicehub_id }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% for t in dev.tags %}
|
{% for t in dev.tags | sort(attribute="id") %}
|
||||||
{{ t.code }}{% if not loop.last %},{% endif %}
|
{{ t.id }}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
<td>{% if dev.status %}{{ dev.status }}{% endif %}</td>
|
<td>{% if dev.status %}{{ dev.status }}{% endif %}</td>
|
||||||
|
|
Reference in New Issue