1
0
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:
Arthur
2023-06-26 15:18:45 -07:00
parent 49c2ac4b5c
commit c9dbf30b79

View File

@ -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