Przeglądaj źródła

Change ID to PK

dansheps 7 lat temu
rodzic
commit
aab84ba6f3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      netbox/dcim/managers.py

+ 1 - 1
netbox/dcim/managers.py

@@ -71,7 +71,7 @@ class InterfaceManager(Manager):
 
         sql_col = '{}.name'.format(self.model._meta.db_table)
         ordering = [
-            '_slot', '_subslot', '_position', '_subposition', '_type', '_id', '_channel', '_vc', 'name', 'id'
+            '_slot', '_subslot', '_position', '_subposition', '_type', '_id', '_channel', '_vc', 'name', 'pk'
 
         ]