1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #5451: Add support for multiple-selection custom fields

This commit is contained in:
Jeremy Stretch
2021-03-01 14:51:29 -05:00
parent 3f216fa4a3
commit 1ddc1a6781
5 changed files with 33 additions and 7 deletions

View File

@@ -15,6 +15,8 @@
<i class="mdi mdi-close-thick text-danger" title="False"></i>
{% elif field.type == 'url' and value %}
<a href="{{ value }}">{{ value|truncatechars:70 }}</a>
{% elif field.type == 'multiselect' and value %}
{{ value|join:", " }}
{% elif value is not None %}
{{ value }}
{% elif field.required %}