In the method permission_denied, did not use the request parameter.

This commit is contained in:
hongfeiZhang 2014-03-01 11:37:31 +08:00
parent 62786a7ad6
commit 693d9d9c63

View File

@ -131,7 +131,7 @@ class APIView(View):
"""
If request is not permitted, determine what kind of exception to raise.
"""
if not self.request.successful_authenticator:
if not request.successful_authenticator:
raise exceptions.NotAuthenticated()
raise exceptions.PermissionDenied()