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:
@@ -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'
|
||||
)
|
||||
|
Reference in New Issue
Block a user