Browse Source

Merge "django22: The 'login' functional-based view is gone (pt. 1)"

tags/16.0.0.0b2
Zuul 1 week ago
parent
commit
e6aea7bacf
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      horizon/test/urls.py

+ 2
- 1
horizon/test/urls.py View File

@@ -33,7 +33,8 @@ from horizon.test.jasmine import jasmine
33 33
 
34 34
 urlpatterns = [
35 35
     url(r'', horizon.base._wrapped_include(horizon.urls)),
36
-    url(r"auth/login/", views.login, {'template_name': "auth/login.html"},
36
+    url(r"auth/login/",
37
+        views.LoginView.as_view(template_name="auth/login.html"),
37 38
         name='login'),
38 39
     url(r'auth/', include('django.contrib.auth.urls')),
39 40
     url(r'^jasmine/.*?$', jasmine.dispatcher),

Loading…
Cancel
Save