Browse Source

Change ID to PK

dansheps 7 năm trước cách đây
mục cha
commit
aab84ba6f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'
 
         ]