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

Standardize linking to related objects in tables

This commit is contained in:
jeremystretch
2023-01-25 16:20:52 -05:00
committed by jeremystretch
parent 94797bb956
commit 48e5b395b2
5 changed files with 19 additions and 5 deletions

View File

@@ -28,7 +28,9 @@ class CircuitTypeTable(NetBoxTable):
tags = columns.TagColumn(
url_name='circuits:circuittype_list'
)
circuit_count = tables.Column(
circuit_count = columns.LinkedCountColumn(
viewname='circuits:circuit_list',
url_params={'type_id': 'pk'},
verbose_name='Circuits'
)