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

Linkify prefix children count

This commit is contained in:
jeremystretch
2021-05-27 15:40:55 -04:00
parent 88aa3a4e19
commit 5cb5f9a963
2 changed files with 11 additions and 2 deletions

View File

@@ -266,8 +266,13 @@ class PrefixTable(BaseTable):
accessor=Accessor('_depth'),
verbose_name='Depth'
)
children = tables.Column(
children = LinkedCountColumn(
accessor=Accessor('_children'),
viewname='ipam:prefix_list',
url_params={
'vrf_id': 'vrf_id',
'within': 'prefix',
},
verbose_name='Children'
)
status = ChoiceFieldColumn(