From 01874490f5f1ad27e30e433c3e7464fb40f4be10 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Sun, 2 Feb 2020 14:21:07 +0100 Subject: [PATCH] auth: Replace deprecated password_reset_complete. --- zproject/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zproject/urls.py b/zproject/urls.py index 17c877e5f7..498d3de4e2 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -13,7 +13,7 @@ from zerver.lib.integrations import WEBHOOK_INTEGRATIONS from django.contrib.auth.views import (LoginView, PasswordResetDoneView, - PasswordResetConfirmView, password_reset_complete) + PasswordResetConfirmView, PasswordResetCompleteView) import zerver.tornado.views import zerver.views @@ -463,8 +463,8 @@ i18n_urls = [ template_name='zerver/reset_confirm.html', form_class=zerver.forms.LoggingSetPasswordForm), name='django.contrib.auth.views.password_reset_confirm'), - url(r'^accounts/password/done/$', password_reset_complete, - {'template_name': 'zerver/reset_done.html'}), + url(r'^accounts/password/done/$', + PasswordResetCompleteView.as_view(template_name='zerver/reset_done.html')), url(r'^accounts/deactivated/$', zerver.views.auth.show_deactivation_notice, name='zerver.views.auth.show_deactivation_notice'),