mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
#16726: Fix cotent registration bug
This commit is contained in:
parent
5ac5135dbc
commit
616f6f6165
@ -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, []))
|
||||
|
Loading…
Reference in New Issue
Block a user