From 616f6f6165fcd66365a30e27cff522148814c1b0 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 3 Jul 2024 16:20:00 -0400 Subject: [PATCH] #16726: Fix cotent registration bug --- netbox/utilities/templatetags/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/templatetags/plugins.py b/netbox/utilities/templatetags/plugins.py index a6e8ce84b0..3a5eb73466 100644 --- a/netbox/utilities/templatetags/plugins.py +++ b/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, []))