Change PrefixTable.vlan to represent the VLAN ID rather than the VLAN object, to enable more useful sorting by VLAN ID rather than site-grouped VLAN objects

This commit is contained in:
Brian Tiemann 2025-01-07 15:58:42 -05:00 committed by Jeremy Stretch
parent 53aa2c8624
commit 4456c488f1

View File

@ -200,8 +200,9 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable):
verbose_name=_('VLAN Group') verbose_name=_('VLAN Group')
) )
vlan = tables.Column( vlan = tables.Column(
accessor='vlan__vid',
linkify=True, linkify=True,
verbose_name=_('VLAN') verbose_name=_('VLAN ID')
) )
role = tables.Column( role = tables.Column(
verbose_name=_('Role'), verbose_name=_('Role'),