#16726: Fix cotent registration bug

This commit is contained in:
Jeremy Stretch 2024-07-03 16:20:00 -04:00
parent 5ac5135dbc
commit 616f6f6165

View File

@ -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, []))