1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #4921: Render non-viewable devices as unavailable space in rack elevations

This commit is contained in:
Jeremy Stretch
2020-07-29 09:43:13 -04:00
parent d1a505d07f
commit 73f9d615bc
4 changed files with 21 additions and 5 deletions

View File

@@ -176,6 +176,7 @@ class RackViewSet(CustomFieldModelViewSet):
# Render and return the elevation as an SVG drawing with the correct content type
drawing = rack.get_elevation_svg(
face=data['face'],
user=request.user,
unit_width=data['unit_width'],
unit_height=data['unit_height'],
legend_width=data['legend_width'],