diff --git a/horizon/test/urls.py b/horizon/test/urls.py index 82939fbd9..aaaaa02da 100644 --- a/horizon/test/urls.py +++ b/horizon/test/urls.py @@ -22,6 +22,7 @@ URL patterns for testing Horizon views. from django.conf.urls import include from django.conf.urls import url +from django.contrib.auth import views from django.contrib.staticfiles.urls import staticfiles_urlpatterns # noqa from django.views.generic import TemplateView # noqa @@ -31,8 +32,7 @@ from horizon.test.jasmine import jasmine urlpatterns = [ url(r'', include(horizon.urls)), - url(r"auth/login/", "django.contrib.auth.views.login", - {'template_name': "auth/login.html"}, + url(r"auth/login/", views.login, {'template_name': "auth/login.html"}, name='login'), url(r'auth/', include('django.contrib.auth.urls')), url(r'^jasmine/.*?$', jasmine.dispatcher),