diff options
| author | Tom Christie | 2013-06-03 12:32:57 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-06-03 12:32:57 +0100 | 
| commit | 6e0567c271ca2b68b5c53778692066a799fb2df6 (patch) | |
| tree | 2f33dbc6fcc2582e137833b2dc5aae4eec4370c1 /docs/api-guide/authentication.md | |
| parent | 11cbf8dca2fe54ae9c27040be70157b88ec75541 (diff) | |
| download | django-rest-framework-6e0567c271ca2b68b5c53778692066a799fb2df6.tar.bz2 | |
request.user should be still be accessible in renderer context if authentication fails
Diffstat (limited to 'docs/api-guide/authentication.md')
| -rwxr-xr-x | docs/api-guide/authentication.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 6888ac4e..09491f02 100755 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -333,7 +333,7 @@ The following example will authenticate any incoming request as the user given b              try:                  user = User.objects.get(username=username)              except User.DoesNotExist: -                raise authenticate.AuthenticationFailed('No such user') +                raise exceptions.AuthenticationFailed('No such user')              return (user, None) | 
