Skip to content

Commit 19a2b90

Browse files
committed
Closes #6275: Linkify rack, device counts on locations list
1 parent 2618dde commit 19a2b90

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/release-notes/version-2.11.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## v2.11.2 (FUTURE)
44

5+
### Enhancements
6+
7+
* [#6275](https://github.com/netbox-community/netbox/issues/6275) - Linkify rack, device counts on locations list
8+
59
### Bug Fixes
610

711
* [#6236](https://github.com/netbox-community/netbox/issues/6236) - Journal entry title should account for configured timezone

netbox/dcim/tables/sites.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ class LocationTable(BaseTable):
102102
site = tables.Column(
103103
linkify=True
104104
)
105-
rack_count = tables.Column(
105+
rack_count = LinkedCountColumn(
106+
viewname='dcim:rack_list',
107+
url_params={'location_id': 'pk'},
106108
verbose_name='Racks'
107109
)
108-
device_count = tables.Column(
110+
device_count = LinkedCountColumn(
111+
viewname='dcim:device_list',
112+
url_params={'location_id': 'pk'},
109113
verbose_name='Devices'
110114
)
111115
actions = ButtonsColumn(

0 commit comments

Comments
 (0)