mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
12552 fix get_children on device bays
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user