Disable ordering from color_name in CableTable

This commit is contained in:
Jathn 2025-08-01 18:15:43 +03:00
parent 9c2d55d682
commit e2386e2d5b

View File

@ -114,7 +114,8 @@ class CableTable(TenancyColumnsMixin, NetBoxTable):
)
color = columns.ColorColumn()
color_name = tables.Column(
verbose_name=_('Color Name')
verbose_name=_('Color Name'),
orderable=False
)
comments = columns.MarkdownColumn()
tags = columns.TagColumn(
@ -126,7 +127,7 @@ class CableTable(TenancyColumnsMixin, NetBoxTable):
fields = (
'pk', 'id', 'label', 'a_terminations', 'b_terminations', 'device_a', 'device_b', 'rack_a', 'rack_b',
'location_a', 'location_b', 'site_a', 'site_b', 'status', 'type', 'tenant', 'tenant_group', 'color',
'length', 'description', 'comments', 'tags', 'created', 'last_updated',
'color_name', 'length', 'description', 'comments', 'tags', 'created', 'last_updated',
)
default_columns = (
'pk', 'id', 'label', 'a_terminations', 'b_terminations', 'status', 'type',