Skip to content

Commit d18a853

Browse files
committed
Fixes #17337: Fix ordering of virtual device contexts by device name
1 parent b2bbdbf commit d18a853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/dcim/tables/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ class VirtualDeviceContextTable(TenancyColumnsMixin, NetBoxTable):
10311031
)
10321032
device = tables.TemplateColumn(
10331033
verbose_name=_('Device'),
1034-
order_by=('_name',),
1034+
order_by=('device___name',),
10351035
template_code=DEVICE_LINK,
10361036
linkify=True
10371037
)

0 commit comments

Comments
 (0)