Przeglądaj źródła

Fixed rendered config context ordering

Jeremy Stretch 7 lat temu
rodzic
commit
278bacbce8
1 zmienionych plików z 2 dodań i 2 usunięć
  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
 
 
 #