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

Convert all LinkColumns to Column(linkify=True)

This commit is contained in:
jeremystretch
2021-04-02 16:59:53 -04:00
parent ea9e9d7273
commit 779837389b
11 changed files with 80 additions and 42 deletions

View File

@@ -10,7 +10,7 @@ from .models import Tenant, TenantGroup
class TenantColumn(tables.TemplateColumn):
"""
Render a colored label (e.g. for DeviceRoles).
Include the tenant description.
"""
template_code = """
{% if record.tenant %}
@@ -57,7 +57,9 @@ class TenantGroupTable(BaseTable):
class TenantTable(BaseTable):
pk = ToggleColumn()
name = tables.LinkColumn()
name = tables.Column(
linkify=True
)
tags = TagColumn(
url_name='tenancy:tenant_list'
)