aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tokenauth/authentication.py
diff options
context:
space:
mode:
authorMjumbe Wawatu Poe2012-09-07 14:23:53 -0400
committerMjumbe Wawatu Poe2012-09-07 14:23:53 -0400
commit3b1404bd7d37d8c60cf45071852f86eea8d4c68f (patch)
treec7e12174dab6415cd0ce21d578d553d7cf627f5e /djangorestframework/tokenauth/authentication.py
parent36cd91bbbe6bc0aeef9b1eb711415988f5c4e501 (diff)
downloaddjango-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.py4
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()