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

@@ -12,7 +12,9 @@ from .models import *
class ProviderTable(BaseTable):
pk = ToggleColumn()
name = tables.LinkColumn()
name = tables.Column(
linkify=True
)
circuit_count = tables.Column(
accessor=Accessor('count_circuits'),
verbose_name='Circuits'
@@ -57,7 +59,9 @@ class ProviderNetworkTable(BaseTable):
class CircuitTypeTable(BaseTable):
pk = ToggleColumn()
name = tables.LinkColumn()
name = tables.Column(
linkify=True
)
circuit_count = tables.Column(
verbose_name='Circuits'
)
@@ -75,7 +79,8 @@ class CircuitTypeTable(BaseTable):
class CircuitTable(BaseTable):
pk = ToggleColumn()
cid = tables.LinkColumn(
cid = tables.Column(
linkify=True,
verbose_name='ID'
)
provider = tables.Column(