Use order_by to change ordering behavior of VLAN column rather than changing accessor
This commit is contained in:

committed by
Jeremy Stretch

parent
4456c488f1
commit
f6b8c1966d
@@ -200,9 +200,9 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable):
|
||||
verbose_name=_('VLAN Group')
|
||||
)
|
||||
vlan = tables.Column(
|
||||
accessor='vlan__vid',
|
||||
order_by=('vlan__vid', 'vlan__pk'),
|
||||
linkify=True,
|
||||
verbose_name=_('VLAN ID')
|
||||
verbose_name=_('VLAN')
|
||||
)
|
||||
role = tables.Column(
|
||||
verbose_name=_('Role'),
|
||||
|
Reference in New Issue
Block a user