aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authentication.py
diff options
context:
space:
mode:
authorTom Christie2012-10-09 09:57:31 +0100
committerTom Christie2012-10-09 09:57:31 +0100
commit5c17a60176d91b8ef8fa729096fd57481de7a4ea (patch)
tree8eec620a04362380dcf2b93aa083ad1d46db6ad8 /rest_framework/authentication.py
parentbeea6487b214a0e40e0688a511cce5e065568632 (diff)
downloaddjango-rest-framework-5c17a60176d91b8ef8fa729096fd57481de7a4ea.tar.bz2
Tweak authtoken
Diffstat (limited to 'rest_framework/authentication.py')
-rw-r--r--rest_framework/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py
index fd597397..f8954428 100644
--- a/rest_framework/authentication.py
+++ b/rest_framework/authentication.py
@@ -126,7 +126,7 @@ class TokenAuthentication(BaseAuthentication):
except self.model.DoesNotExist:
return None
- if token.user.is_active and not getattr(token, 'revoked', False):
+ if token.user.is_active:
return (token.user, token)
# TODO: OAuthAuthentication