Procházet zdrojové kódy

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

Peter Eckel před 4 roky
rodič
revize
4dc428d75b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      netbox/utilities/utils.py

+ 1 - 1
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