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

Closes #6275: Linkify rack, device counts on locations list

This commit is contained in:
jeremystretch
2021-04-26 15:28:35 -04:00
parent 2618dde1e2
commit 19a2b9042f
2 changed files with 10 additions and 2 deletions

View File

@ -102,10 +102,14 @@ class LocationTable(BaseTable):
site = tables.Column(
linkify=True
)
rack_count = tables.Column(
rack_count = LinkedCountColumn(
viewname='dcim:rack_list',
url_params={'location_id': 'pk'},
verbose_name='Racks'
)
device_count = tables.Column(
device_count = LinkedCountColumn(
viewname='dcim:device_list',
url_params={'location_id': 'pk'},
verbose_name='Devices'
)
actions = ButtonsColumn(