mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 16:06:43 -06:00
#7503 add test
This commit is contained in:
parent
da5705909a
commit
727b33c50b
@ -626,7 +626,7 @@ class CustomDeviceListSerializer(serializers.ListSerializer):
|
||||
# break these up into racks for space validation
|
||||
racks = {}
|
||||
for device in devices:
|
||||
if device.rack:
|
||||
if device.rack and device.position is not None:
|
||||
if device.rack not in racks:
|
||||
racks[device.rack] = []
|
||||
racks[device.rack].append(device)
|
||||
|
Loading…
Reference in New Issue
Block a user