1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #5597: Fix ordering devices by primary IP address

This commit is contained in:
Jeremy Stretch
2021-01-11 11:28:03 -05:00
parent e9d888bf63
commit 1e1e2d5f54
2 changed files with 2 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ class DeviceTable(BaseTable):
)
primary_ip = tables.Column(
linkify=True,
order_by=('primary_ip6', 'primary_ip4'),
verbose_name='IP Address'
)
primary_ip4 = tables.Column(