mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Use order_by to change ordering behavior of VLAN column rather than changing accessor
This commit is contained in:
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'),
|
||||
|
Loading…
Reference in New Issue
Block a user