From: Gael Le Mignot Date: Fri, 25 Jun 2021 07:33:11 +0000 (+0200) Subject: Fixed password change template / urls X-Git-Tag: 2.1~40 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=97dd07a54e6b6c9a43f47722b9a4a23e102a2704;p=teleforma.git Fixed password change template / urls --- diff --git a/teleforma/templates/registration/password_change_form.html b/teleforma/templates/registration/password_change_form.html index e994011c..8f5ce6d8 100644 --- a/teleforma/templates/registration/password_change_form.html +++ b/teleforma/templates/registration/password_change_form.html @@ -1,8 +1,5 @@ {% extends "teleforma/base.html" %} -{% load i18n adminmedia %} -{% block extrastyle %}{{ block.super }}{% endblock %} -{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}{% trans 'Documentation' %} / {% endif %} {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} - +{% load i18n %} {% block title %}
{% trans 'Password change' %}{% endblock %} {% block content %}
diff --git a/teleforma/urls.py b/teleforma/urls.py index adcc847c..f7074f93 100644 --- a/teleforma/urls.py +++ b/teleforma/urls.py @@ -113,7 +113,7 @@ urlpatterns = [ url(r'^accounts/password_change/$', PasswordChangeView.as_view(template_name='registration/password_change_form.html'), name="teleforma-password-change"), url(r'^accounts/password_change_done/$', PasswordChangeDoneView.as_view( - template_name='registration/password_change_done.html'), name="teleforma-password-change-done"), + template_name='registration/password_change_done.html'), name="password_change_done"), url(r'^accounts/password_reset/$', PasswordResetView.as_view(template_name='registration/password_reset_form.html', email_template_name='registration/password_reset_email.html'), name="teleforma-password-reset"),