diff options
| author | hongfeiZhang | 2014-03-01 11:37:31 +0800 | 
|---|---|---|
| committer | hongfeiZhang | 2014-03-01 11:37:31 +0800 | 
| commit | 693d9d9c630338379a1fb5271eb67eaddb60d525 (patch) | |
| tree | 4c14d7e530bc73d143b1f94009bccd0f4679ba3a /rest_framework | |
| parent | 62786a7ad64918022f11f1b95ce84adb8d798830 (diff) | |
| download | django-rest-framework-693d9d9c630338379a1fb5271eb67eaddb60d525.tar.bz2 | |
In the method permission_denied, did not use the request parameter.
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/views.py | 2 | 
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() | 
