Fix tags display

This commit is contained in:
Jeremy Stretch 2020-07-08 13:10:40 -04:00
parent bf7bd68b6a
commit 6e50ed084d
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
{% if iface.description %} {% if iface.description %}
{{ iface.description }}<br/> {{ iface.description }}<br/>
{% endif %} {% endif %}
{% for tag in iface.tags.all.unrestricted %} {% for tag in iface.tags.all %}
{% tag tag %} {% tag tag %}
{% empty %} {% empty %}
{% if not iface.description %}&mdash;{% endif %} {% if not iface.description %}&mdash;{% endif %}

View File

@ -4,7 +4,7 @@
<strong>Tags</strong> <strong>Tags</strong>
</div> </div>
<div class="panel-body"> <div class="panel-body">
{% for tag in tags.all.unrestricted %} {% for tag in tags.all %}
{% tag tag url %} {% tag tag url %}
{% empty %} {% empty %}
<span class="text-muted">No tags assigned</span> <span class="text-muted">No tags assigned</span>

View File

@ -202,7 +202,7 @@ class TagColumn(tables.TemplateColumn):
Display a list of tags assigned to the object. Display a list of tags assigned to the object.
""" """
template_code = """ template_code = """
{% for tag in value.all.unrestricted %} {% for tag in value.all %}
{% include 'utilities/templatetags/tag.html' %} {% include 'utilities/templatetags/tag.html' %}
{% empty %} {% empty %}
<span class="text-muted">&mdash;</span> <span class="text-muted">&mdash;</span>