Fixes #17337: Fix ordering of virtual device contexts by device name

This commit is contained in:
Jeremy Stretch 2024-09-03 08:12:22 -04:00
parent b2bbdbf1d9
commit d18a853baa

View File

@ -1031,7 +1031,7 @@ class VirtualDeviceContextTable(TenancyColumnsMixin, NetBoxTable):
)
device = tables.TemplateColumn(
verbose_name=_('Device'),
order_by=('_name',),
order_by=('device___name',),
template_code=DEVICE_LINK,
linkify=True
)