Skip to content

Commit

Permalink
Closes netbox-community#8764: Correct the endpoint for plugin API vie…
Browse files Browse the repository at this point in the history
…w names
  • Loading branch information
peteeckel committed Mar 1, 2022
1 parent e7496c8 commit 4dc428d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4dc428d

Please sign in to comment.