aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/request.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/request.py')
-rw-r--r--djangorestframework/request.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/djangorestframework/request.py b/djangorestframework/request.py
index 2e4e8909..99e50353 100644
--- a/djangorestframework/request.py
+++ b/djangorestframework/request.py
@@ -234,6 +234,9 @@ class Request(object):
user = authentication.authenticate(self)
if user:
return user
+ return self._not_authenticated()
+
+ def _not_authenticated(self):
return AnonymousUser()
def __getattr__(self, name):