Quellcode durchsuchen

#16726: Fix cotent registration bug

Jeremy Stretch vor 1 Jahr
Ursprung
Commit
616f6f6165
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      netbox/utilities/templatetags/plugins.py

+ 1 - 1
netbox/utilities/templatetags/plugins.py

@@ -22,7 +22,7 @@ def _get_registered_content(obj, method, template_context):
         'perms': template_context['perms'],
     }
 
-    template_extensions = registry['plugins']['template_extensions'].get(None, [])
+    template_extensions = list(registry['plugins']['template_extensions'].get(None, []))
     if obj is not None:
         model_name = obj._meta.label_lower
         template_extensions.extend(registry['plugins']['template_extensions'].get(model_name, []))