Просмотр исходного кода

Fixes #4644: Fix ordering of services table by parent

Jeremy Stretch 5 лет назад
Родитель
Сommit
8394ff5537
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 2
      docs/release-notes/version-2.8.md
  2. 3 0
      netbox/ipam/tables.py

+ 2 - 2
docs/release-notes/version-2.8.md

@@ -5,8 +5,8 @@ v2.8.5 (FUTURE)
 ### Bug Fixes
 ### Bug Fixes
 
 
 * [#3304](https://github.com/netbox-community/netbox/issues/3304) - Fix caching invalidation issue related to device/virtual machine primary IP addresses
 * [#3304](https://github.com/netbox-community/netbox/issues/3304) - Fix caching invalidation issue related to device/virtual machine primary IP addresses
-* [#4647](https://github.com/netbox-community/netbox/issues/4647) - Fix caching invalidation issue related to assinging new IP addresses to interfaces
-
+* [#4644](https://github.com/netbox-community/netbox/issues/4644) - Fix ordering of services table by parent
+* [#4647](https://github.com/netbox-community/netbox/issues/4647) - Fix caching invalidation issue related to assigning new IP addresses to interfaces
 
 
 ---
 ---
 
 

+ 3 - 0
netbox/ipam/tables.py

@@ -667,6 +667,9 @@ class ServiceTable(BaseTable):
         viewname='ipam:service',
         viewname='ipam:service',
         args=[Accessor('pk')]
         args=[Accessor('pk')]
     )
     )
+    parent = tables.LinkColumn(
+        order_by=('device', 'virtual_machine')
+    )
     tags = TagColumn(
     tags = TagColumn(
         url_name='ipam:service_list'
         url_name='ipam:service_list'
     )
     )