From 9fe962978e669200930015ffe31a3d716e328bd3 Mon Sep 17 00:00:00 2001 From: Leonardo Hakim Date: Wed, 20 Dec 2023 09:51:57 +0100 Subject: [PATCH] fix: Delete unnecesary reset email template. Clean default html_email_template_name attribute in GASPasswordResetView --- gas/gas/core/views.py | 1 - gas/templates/email/password_reset_email.html | 14 -------------- 2 files changed, 15 deletions(-) delete mode 100644 gas/templates/email/password_reset_email.html diff --git a/gas/gas/core/views.py b/gas/gas/core/views.py index 8a19149..6f8f21f 100644 --- a/gas/gas/core/views.py +++ b/gas/gas/core/views.py @@ -55,7 +55,6 @@ class GASLoginView(GASContextMixin, LoginView): class GASPasswordResetView(GASContextMixin, PasswordResetView): template_name = "gas/reset.html" - html_email_template_name = "registration/password_reset_email.html" success_url = reverse_lazy("gas:password_reset_done") diff --git a/gas/templates/email/password_reset_email.html b/gas/templates/email/password_reset_email.html deleted file mode 100644 index dfcf489..0000000 --- a/gas/templates/email/password_reset_email.html +++ /dev/null @@ -1,14 +0,0 @@ -{% load i18n %}{% autoescape off %} -{% blocktranslate %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktranslate %} - -{% translate "Please go to the following page and choose a new password:" %} -{% block reset_link %} -{{ protocol }}://{{ domain }}{% url 'gas:password_reset_confirm' uidb64=uid token=token %} -{% endblock %} -{% translate 'Your username, in case you’ve forgotten:' %} {{ user.get_username }} - -{% translate "Thanks for using our site!" %} - -{% blocktranslate %}The {{ site_name }} team{% endblocktranslate %} - -{% endautoescape %} -- 2.40.1