Explorar el Código

APIRootView tweaks

Jeremy Stretch hace 9 años
padre
commit
4d4441217f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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"