Просмотр исходного кода

dcim: fix #3964 by moving away from properties to inline styles

hellerve 6 лет назад
Родитель
Сommit
5f3f21215a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/dcim/models/__init__.py

+ 1 - 1
netbox/dcim/models/__init__.py

@@ -395,7 +395,7 @@ class RackElevationHelperMixin:
                 fill='black'
                 fill='black'
             )
             )
         )
         )
-        link.add(drawing.rect(start, end, fill='#{}'.format(color)))
+        link.add(drawing.rect(start, end, style='fill: #{}'.format(color), class_='slot'))
         hex_color = '#{}'.format(foreground_color(color))
         hex_color = '#{}'.format(foreground_color(color))
         link.add(drawing.text(device.name, insert=text, fill=hex_color))
         link.add(drawing.text(device.name, insert=text, fill=hex_color))