diff options
| author | Tom Christie | 2012-09-05 09:54:46 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-05 09:54:46 +0100 |
| commit | da4fa9bded9bbbbacf2a3009e1e211bdd51e287a (patch) | |
| tree | 6fe9ac0aeaae3b5257342d1b97602503ac7800d1 /djangorestframework/request.py | |
| parent | c28b719333b16935e53c76fef79b096cb11322ed (diff) | |
| download | django-rest-framework-da4fa9bded9bbbbacf2a3009e1e211bdd51e287a.tar.bz2 | |
Minor tweaks
Diffstat (limited to 'djangorestframework/request.py')
| -rw-r--r-- | djangorestframework/request.py | 3 |
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): |
