1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #8764: Correct the endpoint for plugin API view names

This commit is contained in:
Peter Eckel
2022-03-01 11:11:26 +01:00
parent e7496c8840
commit 4dc428d75b

View File

@ -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