소스 검색

Fixed rendered config context ordering

Jeremy Stretch 7 년 전
부모
커밋
278bacbce8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      netbox/extras/models.py

+ 2 - 2
netbox/extras/models.py

@@ -703,11 +703,11 @@ class ConfigContextModel(models.Model):
         """
 
         # Compile all config data, overwriting lower-weight values with higher-weight values where a collision occurs
-        data = {}
+        data = OrderedDict()
         for context in ConfigContext.objects.get_for_object(self):
             data.update(context.data)
 
-        return sorted(data)
+        return data
 
 
 #