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

Fixes #8074: Ordering VMs by name should reference naturalized value

jeremystretch 4 лет назад
Родитель
Сommit
d1e8c06d36
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 1 0
      netbox/virtualization/tables.py

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -9,6 +9,7 @@
 ### Bug Fixes
 
 * [#7674](https://github.com/netbox-community/netbox/issues/7674) - Fix inadvertent application of device type context to virtual machines
+* [#8074](https://github.com/netbox-community/netbox/issues/8074) - Ordering VMs by name should reference naturalized value
 
 ---
 

+ 1 - 0
netbox/virtualization/tables.py

@@ -114,6 +114,7 @@ class ClusterTable(BaseTable):
 class VirtualMachineTable(BaseTable):
     pk = ToggleColumn()
     name = tables.Column(
+        order_by=('_name',),
         linkify=True
     )
     status = ChoiceFieldColumn()