[Django 1.10] Fix urls.url wrong call

Fixes some legacy handling of URLs for django 1.10

Change-Id: I208878ba5b386217879ce571e63d6cb84808da55
Partially-Implements: blueprint dj110
This commit is contained in:
Thomas Goirand 2016-07-21 10:53:01 +02:00 committed by Rob Cresswell
parent 58bb3341b9
commit 6f6f746e92

View File

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