Преглед изворни кода

Fix drawing rear elevation when full-height device has been assigned only front image

LuPo пре 6 година
родитељ
комит
0b3111c47f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      netbox/dcim/elevations.py

+ 1 - 1
netbox/dcim/elevations.py

@@ -88,7 +88,7 @@ class RackElevationSVG:
         drawing.add(drawing.text(str(device), insert=text))
 
         # Embed rear device type image if one exists
-        if self.include_images and device.device_type.front_image:
+        if self.include_images and device.device_type.rear_image:
             url = device.device_type.rear_image.url
             image = drawing.image(href=url, insert=start, size=end, class_='device-image')
             image.stretch()