From 4dc428d75b8bf69c80db675c0a4d819ca74fd81a Mon Sep 17 00:00:00 2001 From: Peter Eckel Date: Tue, 1 Mar 2022 11:11:26 +0100 Subject: [PATCH] Closes #8764: Correct the endpoint for plugin API view names --- netbox/utilities/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/utils.py b/netbox/utilities/utils.py index 3ef33c0f7..7b37c0b70 100644 --- a/netbox/utilities/utils.py +++ b/netbox/utilities/utils.py @@ -31,7 +31,7 @@ def get_viewname(model, action=None, rest_api=False): if rest_api: if is_plugin: - viewname = f'plugins-api:{app_label}:{model_name}' + viewname = f'plugins-api:{app_label}-api:{model_name}' else: viewname = f'{app_label}-api:{model_name}' # Append the action, if any