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

Fixes #8187: Fix rendering of tags column in object tables

This commit is contained in:
jeremystretch
2021-12-30 09:41:35 -05:00
parent c3f2fee633
commit 6cda55da06
3 changed files with 42 additions and 1 deletions

View File

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