Browse Source

APIRootView tweaks

Jeremy Stretch 8 years ago
parent
commit
4d4441217f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      netbox/netbox/views.py

+ 2 - 1
netbox/netbox/views.py

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