Преглед на файлове

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

jeremystretch преди 4 години
родител
ревизия
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()