aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/request.py
diff options
context:
space:
mode:
authorTom Christie2012-09-05 09:54:46 +0100
committerTom Christie2012-09-05 09:54:46 +0100
commitda4fa9bded9bbbbacf2a3009e1e211bdd51e287a (patch)
tree6fe9ac0aeaae3b5257342d1b97602503ac7800d1 /djangorestframework/request.py
parentc28b719333b16935e53c76fef79b096cb11322ed (diff)
downloaddjango-rest-framework-da4fa9bded9bbbbacf2a3009e1e211bdd51e287a.tar.bz2
Minor tweaks
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):