Merge pull request #1448 from zhanghongfei/master

In the method permission_denied, did not use the request parameter.
This commit is contained in:
Tom Christie 2014-03-02 20:56:29 +00:00
commit ee9864e0dc

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()