From 1a2b3255ad38697c45823399bdd534fc19d554c0 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 1 Jun 2016 11:57:46 +0100 Subject: [PATCH] Remove deprecated view-string in URL conf --- tests/test_authentication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_authentication.py b/tests/test_authentication.py index e7d2dd421..6c411936d 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -19,6 +19,7 @@ from rest_framework.authentication import ( TokenAuthentication ) from rest_framework.authtoken.models import Token +from rest_framework.authtoken.views import obtain_auth_token from rest_framework.response import Response from rest_framework.test import APIClient, APIRequestFactory from rest_framework.views import APIView @@ -75,7 +76,7 @@ urlpatterns = [ authentication_classes=[CustomKeywordTokenAuthentication] ) ), - url(r'^auth-token/$', 'rest_framework.authtoken.views.obtain_auth_token'), + url(r'^auth-token/$', obtain_auth_token), url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')), ]