diff accounts/urls.py @ 1116:85119508e072

Convert password change to V3 design.
author Brian Neal <bgneal@gmail.com>
date Tue, 19 Jul 2016 21:20:44 -0500
parents d613d25a021e
children dd57bacde961
line wrap: on
line diff
--- a/accounts/urls.py	Tue Jul 12 21:31:09 2016 -0500
+++ b/accounts/urls.py	Tue Jul 19 21:20:44 2016 -0500
@@ -2,7 +2,6 @@
 from django.conf.urls import url
 from django.conf import settings
 import django.contrib.auth.views as auth_views
-from django.views.generic import TemplateView
 
 import accounts.views
 
@@ -34,8 +33,11 @@
         name='accounts-logout'),
     url(r'^password/$',
         auth_views.password_change,
-        {'template_name': 'accounts/password_change.html',
-         'post_change_redirect': settings.LOGIN_REDIRECT_URL},
+        kwargs={
+            'template_name': 'accounts/password_change.html',
+            'post_change_redirect': settings.LOGIN_REDIRECT_URL,
+            'extra_context': {'V3_DESIGN': True},
+        },
         name='accounts-password_change'),
     url(r'^password/reset/$',
         auth_views.password_reset,