aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/authentication.md
diff options
context:
space:
mode:
authorTom Christie2013-06-03 12:32:57 +0100
committerTom Christie2013-06-03 12:32:57 +0100
commit6e0567c271ca2b68b5c53778692066a799fb2df6 (patch)
tree2f33dbc6fcc2582e137833b2dc5aae4eec4370c1 /docs/api-guide/authentication.md
parent11cbf8dca2fe54ae9c27040be70157b88ec75541 (diff)
downloaddjango-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-xdocs/api-guide/authentication.md2
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)