diff options
| author | Mjumbe Wawatu Poe | 2012-09-07 14:23:53 -0400 |
|---|---|---|
| committer | Mjumbe Wawatu Poe | 2012-09-07 14:23:53 -0400 |
| commit | 3b1404bd7d37d8c60cf45071852f86eea8d4c68f (patch) | |
| tree | c7e12174dab6415cd0ce21d578d553d7cf627f5e /djangorestframework/tokenauth/authentication.py | |
| parent | 36cd91bbbe6bc0aeef9b1eb711415988f5c4e501 (diff) | |
| download | django-rest-framework-3b1404bd7d37d8c60cf45071852f86eea8d4c68f.tar.bz2 | |
Rename the default token class to "BasicToken"
Diffstat (limited to 'djangorestframework/tokenauth/authentication.py')
| -rw-r--r-- | djangorestframework/tokenauth/authentication.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tokenauth/authentication.py b/djangorestframework/tokenauth/authentication.py index 167edf96..327a4a09 100644 --- a/djangorestframework/tokenauth/authentication.py +++ b/djangorestframework/tokenauth/authentication.py @@ -1,5 +1,5 @@ from djangorestframework.authentication import BaseAuthentication -from .models import Token +from .models import BasicToken class TokenAuthentication(BaseAuthentication): """ @@ -20,7 +20,7 @@ class TokenAuthentication(BaseAuthentication): Authorization: Token 0123456789abcdef0123456789abcdef """ - model = Token + model = BasicToken def authenticate(self, request): auth = request.META.get('HTTP_AUTHORIZATION', '').strip().split() |
