From 5c17a60176d91b8ef8fa729096fd57481de7a4ea Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 9 Oct 2012 09:57:31 +0100 Subject: Tweak authtoken --- rest_framework/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rest_framework/authentication.py') 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 -- cgit v1.2.3