aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authtoken/urls.py
diff options
context:
space:
mode:
authorRob Romano2012-11-12 15:16:53 -0800
committerRob Romano2012-11-14 12:46:14 -0800
commitce3ccb91dc2a7aaf8ff41ac24045c558d641839e (patch)
treed6631e56c5466462f25896b0ce29a82056c10a6e /rest_framework/authtoken/urls.py
parentbd92db3c672137fa68185dbc0f453f7cea7caff3 (diff)
downloaddjango-rest-framework-ce3ccb91dc2a7aaf8ff41ac24045c558d641839e.tar.bz2
Updates to login view for TokenAuthentication from feedback from Tom
Diffstat (limited to 'rest_framework/authtoken/urls.py')
-rw-r--r--rest_framework/authtoken/urls.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/rest_framework/authtoken/urls.py b/rest_framework/authtoken/urls.py
index 8bea46c0..87872136 100644
--- a/rest_framework/authtoken/urls.py
+++ b/rest_framework/authtoken/urls.py
@@ -13,9 +13,8 @@ your authentication settings include `TokenAuthentication`.
)
"""
from django.conf.urls.defaults import patterns, url
-from rest_framework.authtoken.views import AuthTokenLoginView, AuthTokenLogoutView
+from rest_framework.authtoken.views import AuthTokenView
urlpatterns = patterns('rest_framework.authtoken.views',
- url(r'^login/$', AuthTokenLoginView.as_view(), name='token_login'),
- url(r'^logout/$', AuthTokenLogoutView.as_view(), name='token_logout'),
+ url(r'^login/$', AuthTokenView.as_view(), name='token_login'),
)