Closes #4940: Added an occupied field to rack unit representations for rack elevation views

This commit is contained in:
Jeremy Stretch
2020-08-03 13:37:32 -04:00
parent cdfec4d865
commit 31e65a09e8
4 changed files with 28 additions and 4 deletions

View File

@@ -189,6 +189,7 @@ class RackViewSet(CustomFieldModelViewSet):
# Return a JSON representation of the rack units in the elevation
elevation = rack.get_rack_units(
face=data['face'],
user=request.user,
exclude=data['exclude'],
expand_devices=data['expand_devices']
)