diff options
| author | Tom Christie | 2012-10-09 09:57:31 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-10-09 09:57:31 +0100 | 
| commit | 5c17a60176d91b8ef8fa729096fd57481de7a4ea (patch) | |
| tree | 8eec620a04362380dcf2b93aa083ad1d46db6ad8 /rest_framework/authentication.py | |
| parent | beea6487b214a0e40e0688a511cce5e065568632 (diff) | |
| download | django-rest-framework-5c17a60176d91b8ef8fa729096fd57481de7a4ea.tar.bz2 | |
Tweak authtoken
Diffstat (limited to 'rest_framework/authentication.py')
| -rw-r--r-- | rest_framework/authentication.py | 2 | 
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 | 
