File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 99from django .utils import unittest
1010from django .utils .http import urlencode
1111
12- from rest_framework import status , permissions
12+ from rest_framework import status
13+ from rest_framework .permissions import IsAuthenticated
14+ from rest_framework_oauth import permissions
1315from rest_framework_oauth .authentication import OAuthAuthentication , OAuth2Authentication
1416from rest_framework_oauth .compat import oauth2_provider , oauth2_provider_scope
1517from rest_framework_oauth .compat import oauth , oauth_provider
2123
2224
2325class MockView (APIView ):
24- permission_classes = (permissions . IsAuthenticated ,)
26+ permission_classes = (IsAuthenticated ,)
2527
2628 def get (self , request ):
2729 return HttpResponse ({'a' : 1 , 'b' : 2 , 'c' : 3 })
You can’t perform that action at this time.
0 commit comments