aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorTom Christie2014-03-02 20:56:29 +0000
committerTom Christie2014-03-02 20:56:29 +0000
commitee9864e0dce10018261c131a76eb7c668703d76c (patch)
tree431a37ca3fb6f74ca5fb5d05d51e78a2b894e860 /rest_framework/views.py
parentb93e3a060a76a7d22013c1c806fe165f1728dc20 (diff)
parent693d9d9c630338379a1fb5271eb67eaddb60d525 (diff)
downloaddjango-rest-framework-ee9864e0dce10018261c131a76eb7c668703d76c.tar.bz2
Merge pull request #1448 from zhanghongfei/master
In the method permission_denied, did not use the request parameter.
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index 02a6e25a..2cf9b220 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -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()