12216 add color to svg

This commit is contained in:
Arthur 2023-10-20 15:10:12 -07:00
parent 1244aa56b0
commit 22f92417a8

View File

@ -182,6 +182,8 @@ class CableTraceSVG:
if hasattr(instance, 'role'): if hasattr(instance, 'role'):
# Device # Device
return instance.role.color return instance.role.color
elif instance._meta.model_name == 'circuit':
return instance.type.color
else: else:
# Other parent object # Other parent object
return 'e0e0e0' return 'e0e0e0'