]> git.parisson.com Git - teleforma.git/commitdiff
Fixed password change template / urls
authorGael Le Mignot <gael@pilotsystems.net>
Fri, 25 Jun 2021 07:33:11 +0000 (09:33 +0200)
committerGael Le Mignot <gael@pilotsystems.net>
Fri, 25 Jun 2021 07:33:11 +0000 (09:33 +0200)
teleforma/templates/registration/password_change_form.html
teleforma/urls.py

index e994011ce7c67d149dc2670ad0130579970d4c90..8f5ce6d8b78502ee5f1a78a339d41482a68ac3af 100644 (file)
@@ -1,8 +1,5 @@
 {% extends "teleforma/base.html" %}
-{% load i18n adminmedia %}
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
-{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
-
+{% load i18n %}
 {% block title %}<br />{% trans 'Password change' %}{% endblock %}
 
 {% block content %}<div id="content-main">
index adcc847c2510b1ca761b7947f07bc4d4291ed61d..f7074f93fddbde3ee942d684c13558b37ad1e3f0 100644 (file)
@@ -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"),