diff options
| author | Rob Romano | 2012-11-12 15:16:53 -0800 |
|---|---|---|
| committer | Rob Romano | 2012-11-14 12:46:14 -0800 |
| commit | ce3ccb91dc2a7aaf8ff41ac24045c558d641839e (patch) | |
| tree | d6631e56c5466462f25896b0ce29a82056c10a6e /rest_framework/authtoken/urls.py | |
| parent | bd92db3c672137fa68185dbc0f453f7cea7caff3 (diff) | |
| download | django-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.py | 5 |
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'), ) |
