Skip to content

Commit

Permalink
Closes #9214: Linkify cluster counts in cluster type & group tables
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Apr 25, 2022
1 parent 74b5e55 commit e63a191
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/release-notes/version-3.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@

* [#9060](https://github.com/netbox-community/netbox/issues/9060) - Add device type filters for device bays, module bays, and inventory items
* [#9152](https://github.com/netbox-community/netbox/issues/9152) - Annotate related object type under custom field view
* [#9192](https://github.com/netbox-community/netbox/issues/9192) - Add Ubiquiti SmartPower connector type
* [#9214](https://github.com/netbox-community/netbox/issues/9214) - Linkify cluster counts in cluster type & group tables

### Bug Fixes

* [#8941](https://github.com/netbox-community/netbox/issues/8941) - Fix dynamic dropdown behavior when browser is zoomed
* [#9132](https://github.com/netbox-community/netbox/issues/9132) - Limit location options by selected site when creating a wireless link
* [#9133](https://github.com/netbox-community/netbox/issues/9133) - Upgrade script should require Python 3.8 or later
* [#9151](https://github.com/netbox-community/netbox/issues/9151) - Child prefix counts not annotated on aggregates list under RIR view
Expand Down
8 changes: 6 additions & 2 deletions netbox/virtualization/tables/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class ClusterTypeTable(NetBoxTable):
name = tables.Column(
linkify=True
)
cluster_count = tables.Column(
cluster_count = columns.LinkedCountColumn(
viewname='virtualization:cluster_list',
url_params={'type_id': 'pk'},
verbose_name='Clusters'
)
tags = columns.TagColumn(
Expand All @@ -33,7 +35,9 @@ class ClusterGroupTable(NetBoxTable):
name = tables.Column(
linkify=True
)
cluster_count = tables.Column(
cluster_count = columns.LinkedCountColumn(
viewname='virtualization:cluster_list',
url_params={'group_id': 'pk'},
verbose_name='Clusters'
)
contacts = tables.ManyToManyColumn(
Expand Down

0 comments on commit e63a191

Please sign in to comment.