mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
12552 fix get_children on device bays
This commit is contained in:
parent
49c2ac4b5c
commit
c9dbf30b79
@ -36,7 +36,7 @@ def get_device_name(device):
|
|||||||
else:
|
else:
|
||||||
name = str(device.device_type)
|
name = str(device.device_type)
|
||||||
if device.devicebay_count:
|
if device.devicebay_count:
|
||||||
name += ' ({}/{})'.format(device.children.count(), device.devicebay_count)
|
name += ' ({}/{})'.format(device.get_children().count(), device.devicebay_count)
|
||||||
|
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user