Răsfoiți Sursa

Change ID to PK

dansheps 7 ani în urmă
părinte
comite
aab84ba6f3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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'
 
         ]