Explorar o código

Fixed rendered config context ordering

Jeremy Stretch %!s(int64=7) %!d(string=hai) anos
pai
achega
278bacbce8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
 
 
 #