From 6e0567c271ca2b68b5c53778692066a799fb2df6 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 3 Jun 2013 12:32:57 +0100 Subject: request.user should be still be accessible in renderer context if authentication fails --- docs/api-guide/authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/api-guide/authentication.md') 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) -- cgit v1.2.3