Merge pull request #8767 from peteeckel/fix/plugin-api-endpoint

Correct the endpoint for plugin API view names
This commit is contained in:
Jeremy Stretch 2022-03-01 10:11:49 -05:00 committed by GitHub
commit 638d89e73b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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