Skip to content

Commit

Permalink
#16726: Fix cotent registration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 3, 2024
1 parent 5ac5135 commit 616f6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/utilities/templatetags/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, []))
Expand Down

0 comments on commit 616f6f6

Please sign in to comment.