From 6e50ed084d40083df6612470d1a3e8fa267b30f5 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 8 Jul 2020 13:10:40 -0400 Subject: [PATCH] Fix tags display --- netbox/templates/dcim/inc/interface.html | 2 +- netbox/templates/extras/inc/tags_panel.html | 2 +- netbox/utilities/tables.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index b8d090231..75869db52 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -31,7 +31,7 @@ {% if iface.description %} {{ iface.description }}
{% endif %} - {% for tag in iface.tags.all.unrestricted %} + {% for tag in iface.tags.all %} {% tag tag %} {% empty %} {% if not iface.description %}—{% endif %} diff --git a/netbox/templates/extras/inc/tags_panel.html b/netbox/templates/extras/inc/tags_panel.html index d03932354..2024d4ab7 100644 --- a/netbox/templates/extras/inc/tags_panel.html +++ b/netbox/templates/extras/inc/tags_panel.html @@ -4,7 +4,7 @@ Tags
- {% for tag in tags.all.unrestricted %} + {% for tag in tags.all %} {% tag tag url %} {% empty %} No tags assigned diff --git a/netbox/utilities/tables.py b/netbox/utilities/tables.py index a4f15a836..0144ea2d1 100644 --- a/netbox/utilities/tables.py +++ b/netbox/utilities/tables.py @@ -202,7 +202,7 @@ class TagColumn(tables.TemplateColumn): Display a list of tags assigned to the object. """ template_code = """ - {% for tag in value.all.unrestricted %} + {% for tag in value.all %} {% include 'utilities/templatetags/tag.html' %} {% empty %}