Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 2989c70

Browse files
committed
Update string arg to url() to callable
1 parent 8156f6e commit 2989c70

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

analyticsdataserver/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
from django.contrib import admin
44
from django.views.generic import RedirectView
55
from analyticsdataserver import views
6+
from rest_framework.authtoken.views import obtain_auth_token
67

78

89
urlpatterns = [
910
url(r'^$', RedirectView.as_view(url='/docs')), # pylint: disable=no-value-for-parameter
1011

1112
url(r'^api-auth/', include('rest_framework.urls', 'rest_framework')),
12-
url(r'^api-token-auth/', 'rest_framework.authtoken.views.obtain_auth_token'),
13+
url(r'^api-token-auth/', obtain_auth_token),
1314

1415
url(r'^api/', include('analytics_data_api.urls', 'api')),
1516
url(r'^docs/', include('rest_framework_swagger.urls')),

0 commit comments

Comments
 (0)