|
|
@@ -2,7 +2,7 @@ import django_tables2 as tables
|
|
|
from django_tables2.utils import Accessor
|
|
|
|
|
|
from tenancy.tables import COL_TENANT
|
|
|
-from utilities.tables import BaseTable, BooleanColumn, ToggleColumn
|
|
|
+from utilities.tables import BaseTable, BooleanColumn, ColorColumn, ToggleColumn
|
|
|
from .models import (
|
|
|
Cable, ConsolePort, ConsolePortTemplate, ConsoleServerPort, ConsoleServerPortTemplate, Device, DeviceBay,
|
|
|
DeviceBayTemplate, DeviceRole, DeviceType, FrontPort, FrontPortTemplate, Interface, InterfaceTemplate,
|
|
|
@@ -662,6 +662,7 @@ class CableTable(BaseTable):
|
|
|
template_code=CABLE_LENGTH,
|
|
|
order_by='_abs_length'
|
|
|
)
|
|
|
+ color = ColorColumn()
|
|
|
|
|
|
class Meta(BaseTable.Meta):
|
|
|
model = Cable
|