mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -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:
|
||||
name = str(device.device_type)
|
||||
if device.devicebay_count:
|
||||
name += ' ({}/{})'.format(device.children.count(), device.devicebay_count)
|
||||
name += ' ({}/{})'.format(device.get_children().count(), device.devicebay_count)
|
||||
|
||||
return name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user