|
@@ -166,7 +166,7 @@ class CableTraceSVG:
|
|
|
"""
|
|
"""
|
|
|
if hasattr(instance, 'parent_object'):
|
|
if hasattr(instance, 'parent_object'):
|
|
|
# Termination
|
|
# Termination
|
|
|
- return 'f0f0f0'
|
|
|
|
|
|
|
+ return getattr(instance, 'color', 'f0f0f0') or 'f0f0f0'
|
|
|
if hasattr(instance, 'device_role'):
|
|
if hasattr(instance, 'device_role'):
|
|
|
# Device
|
|
# Device
|
|
|
return instance.device_role.color
|
|
return instance.device_role.color
|