aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/authentication.py
diff options
context:
space:
mode:
authorRob Romano2012-11-13 16:49:13 -0800
committerRob Romano2012-11-13 16:49:13 -0800
commit4fd590f96f77eae433f1d5de281ed95f5a003745 (patch)
tree4653a1ef225955cbedac12a9ef240f4466230166 /rest_framework/tests/authentication.py
parentd3ee5080a0ff3894050442146083f9d4a2327c8f (diff)
downloaddjango-rest-framework-4fd590f96f77eae433f1d5de281ed95f5a003745.tar.bz2
Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example.
Diffstat (limited to 'rest_framework/tests/authentication.py')
-rw-r--r--rest_framework/tests/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/authentication.py b/rest_framework/tests/authentication.py
index cb16ef1e..96ca9f52 100644
--- a/rest_framework/tests/authentication.py
+++ b/rest_framework/tests/authentication.py
@@ -27,7 +27,7 @@ MockView.authentication_classes += (TokenAuthentication,)
urlpatterns = patterns('',
(r'^$', MockView.as_view()),
- (r'^auth-token/', include('rest_framework.authtoken.urls')),
+ (r'^auth-token/', 'rest_framework.authtoken.views.obtain_auth_token'),
)