Sfoglia il codice sorgente

APIRootView tweaks

Jeremy Stretch 9 anni fa
parent
commit
4d4441217f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      netbox/netbox/views.py

+ 2 - 1
netbox/netbox/views.py

@@ -53,7 +53,8 @@ def home(request):
 
 
 class APIRootView(APIView):
-    permission_classes = [IsAuthenticated]
+    _ignore_model_permissions = True
+    exclude_from_schema = True
 
     def get_view_name(self):
         return u"API Root"