mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 19:08:38 -06:00
Closes #8764: Correct the endpoint for plugin API view names
This commit is contained in:
parent
5f1706ed00
commit
ab14b25a4c
@ -31,7 +31,7 @@ def get_viewname(model, action=None, rest_api=False):
|
|||||||
|
|
||||||
if rest_api:
|
if rest_api:
|
||||||
if is_plugin:
|
if is_plugin:
|
||||||
viewname = f'plugins-api:{app_label}:{model_name}'
|
viewname = f'plugins-api:{app_label}-api:{model_name}'
|
||||||
else:
|
else:
|
||||||
viewname = f'{app_label}-api:{model_name}'
|
viewname = f'{app_label}-api:{model_name}'
|
||||||
# Append the action, if any
|
# Append the action, if any
|
||||||
|
Loading…
Reference in New Issue
Block a user