auth: Replace deprecated password_reset_complete.

This commit is contained in:
Mateusz Mandera 2020-02-02 14:21:07 +01:00 committed by Tim Abbott
parent 65b41210a8
commit 01874490f5
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ from zerver.lib.integrations import WEBHOOK_INTEGRATIONS
from django.contrib.auth.views import (LoginView, PasswordResetDoneView, from django.contrib.auth.views import (LoginView, PasswordResetDoneView,
PasswordResetConfirmView, password_reset_complete) PasswordResetConfirmView, PasswordResetCompleteView)
import zerver.tornado.views import zerver.tornado.views
import zerver.views import zerver.views
@ -463,8 +463,8 @@ i18n_urls = [
template_name='zerver/reset_confirm.html', template_name='zerver/reset_confirm.html',
form_class=zerver.forms.LoggingSetPasswordForm), form_class=zerver.forms.LoggingSetPasswordForm),
name='django.contrib.auth.views.password_reset_confirm'), name='django.contrib.auth.views.password_reset_confirm'),
url(r'^accounts/password/done/$', password_reset_complete, url(r'^accounts/password/done/$',
{'template_name': 'zerver/reset_done.html'}), PasswordResetCompleteView.as_view(template_name='zerver/reset_done.html')),
url(r'^accounts/deactivated/$', url(r'^accounts/deactivated/$',
zerver.views.auth.show_deactivation_notice, zerver.views.auth.show_deactivation_notice,
name='zerver.views.auth.show_deactivation_notice'), name='zerver.views.auth.show_deactivation_notice'),