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

@ -9,6 +9,7 @@
### Bug Fixes
* [#5584](https://github.com/netbox-community/netbox/issues/5584) - Restore power utilization panel under device view
* [#5597](https://github.com/netbox-community/netbox/issues/5597) - Fix ordering devices by primary IP address
---

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(