diff accounts/urls.py @ 1115:d613d25a021e

Convert login, logout, and lost username views to V3 design.
author Brian Neal <bgneal@gmail.com>
date Tue, 12 Jul 2016 21:31:09 -0500
parents e932f2ecd4a7
children 85119508e072
line wrap: on
line diff
--- a/accounts/urls.py	Tue Jul 12 20:44:20 2016 -0500
+++ b/accounts/urls.py	Tue Jul 12 21:31:09 2016 -0500
@@ -20,11 +20,17 @@
 urlpatterns += [
     url(r'^login/$',
         auth_views.login,
-        kwargs={'template_name': 'accounts/login.html'},
+        kwargs={
+            'template_name': 'accounts/login.html',
+            'extra_context': {'V3_DESIGN': True},
+        },
         name='accounts-login'),
     url(r'^logout/$',
         auth_views.logout,
-        kwargs={'template_name': 'accounts/logout.html'},
+        kwargs={
+            'template_name': 'accounts/logout.html',
+            'extra_context': {'V3_DESIGN': True},
+        },
         name='accounts-logout'),
     url(r'^password/$',
         auth_views.password_change,
@@ -56,6 +62,6 @@
         accounts.views.username_query,
         name='accounts-username_query'),
     url(r'^username/sent/$',
-        TemplateView.as_view(template_name='accounts/username_sent.html'),
+        accounts.views.UsernameSentView.as_view(),
         name='accounts-username_sent'),
 ]