Explorar el Código

Fix evaluation of RestrictedQuerySet

Jeremy Stretch hace 5 años
padre
commit
66703d8963
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/extras/models/models.py

+ 1 - 1
netbox/extras/models/models.py

@@ -538,7 +538,7 @@ class ConfigContextModel(models.Model):
 
         # Compile all config data, overwriting lower-weight values with higher-weight values where a collision occurs
         data = OrderedDict()
-        for context in ConfigContext.objects.get_for_object(self):
+        for context in ConfigContext.objects.unrestricted().get_for_object(self):
             data = deepmerge(data, context.data)
 
         # If the object has local config context data defined, merge it last