diff options
| author | Rob Romano | 2012-11-12 15:16:53 -0800 |
|---|---|---|
| committer | Rob Romano | 2012-11-12 15:16:53 -0800 |
| commit | 8eb37e1f7e879fc53c4550e5f1a545dd755cd07e (patch) | |
| tree | 054979f073495b0f49b9ad98564357c6cf895238 /rest_framework/authtoken/urls.py | |
| parent | 063c027c7b4278620fda6cf4aa7825a817748cc0 (diff) | |
| download | django-rest-framework-8eb37e1f7e879fc53c4550e5f1a545dd755cd07e.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'), ) |
