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

Add dedicated views for nested group models

This commit is contained in:
Jeremy Stretch
2021-03-26 15:07:29 -04:00
parent b7e44a744d
commit 2820d26a0f
13 changed files with 382 additions and 11 deletions

View File

@@ -17,7 +17,9 @@ __all__ = (
class RegionTable(BaseTable):
pk = ToggleColumn()
name = MPTTColumn()
name = MPTTColumn(
linkify=True
)
site_count = tables.Column(
verbose_name='Sites'
)
@@ -35,7 +37,9 @@ class RegionTable(BaseTable):
class SiteGroupTable(BaseTable):
pk = ToggleColumn()
name = MPTTColumn()
name = MPTTColumn(
linkify=True
)
site_count = tables.Column(
verbose_name='Sites'
)