mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fixes #11467: Correct count on interfaces tab when viewing a VC master device
This commit is contained in:
parent
8d9e151030
commit
8565d175f9
@ -21,6 +21,7 @@
|
|||||||
* [#11403](https://github.com/netbox-community/netbox/issues/11403) - Fix exception when scheduling a job in the past
|
* [#11403](https://github.com/netbox-community/netbox/issues/11403) - Fix exception when scheduling a job in the past
|
||||||
* [#11438](https://github.com/netbox-community/netbox/issues/11438) - Fix deletion of scheduled job using non-default queues
|
* [#11438](https://github.com/netbox-community/netbox/issues/11438) - Fix deletion of scheduled job using non-default queues
|
||||||
* [#11444](https://github.com/netbox-community/netbox/issues/11444) - Adding/removing a device from a device bay should record a pre-change snapshot on the device bay
|
* [#11444](https://github.com/netbox-community/netbox/issues/11444) - Adding/removing a device from a device bay should record a pre-change snapshot on the device bay
|
||||||
|
* [#11467](https://github.com/netbox-community/netbox/issues/11467) - Correct count on interfaces tab when viewing a VC master device
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1949,7 +1949,7 @@ class DeviceInterfacesView(DeviceComponentsView):
|
|||||||
template_name = 'dcim/device/interfaces.html'
|
template_name = 'dcim/device/interfaces.html'
|
||||||
tab = ViewTab(
|
tab = ViewTab(
|
||||||
label=_('Interfaces'),
|
label=_('Interfaces'),
|
||||||
badge=lambda obj: obj.interfaces.count(),
|
badge=lambda obj: obj.vc_interfaces().count(),
|
||||||
permission='dcim.view_interface',
|
permission='dcim.view_interface',
|
||||||
weight=520,
|
weight=520,
|
||||||
hide_if_empty=True
|
hide_if_empty=True
|
||||||
|
Loading…
Reference in New Issue
Block a user