From 4e0b82c15a15e892b0fd5a59dfc5d414744b57bd Mon Sep 17 00:00:00 2001 From: Dan Braghis <dan.braghis@torchbox.com> Date: Thu, 11 Jan 2018 10:45:23 +0000 Subject: [PATCH] Use the Django password reset form instead of the Wagtail one --- opentech/apply/users/urls.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/opentech/apply/users/urls.py b/opentech/apply/users/urls.py index 6627da49e..4942e2dad 100644 --- a/opentech/apply/users/urls.py +++ b/opentech/apply/users/urls.py @@ -1,11 +1,7 @@ from django.conf.urls import url - from django.contrib.auth import views as auth_views - from django.urls import reverse_lazy -from wagtail.wagtailadmin.forms import PasswordResetForm - from opentech.apply.users.views import account urlpatterns = [ @@ -36,8 +32,7 @@ urlpatterns = [ url(r'^reset/$', auth_views.PasswordResetView.as_view( template_name='users/password_reset/form.html', email_template_name='users/password_reset/email.txt', - success_url=reverse_lazy('users:password_reset_done'), - form_class=PasswordResetForm + success_url=reverse_lazy('users:password_reset_done') )), url( r'^reset/done/$', -- GitLab