From dbefd3a0d7bf4fb62ce857db82123d7627dda05a Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 10:28:04 +0000 Subject: [PATCH] Fix confirm email template --- users/templates/users/confirm_email.html | 2 +- users/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/users/templates/users/confirm_email.html b/users/templates/users/confirm_email.html index 61ae250e..c90af524 100644 --- a/users/templates/users/confirm_email.html +++ b/users/templates/users/confirm_email.html @@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% csrf_token %}

{% blocktrans %}Confirmation email{% endblocktrans %}

-

{% blocktrans %}Confirm the email{% endblocktrans %} {{ email }} {% blocktrans %}for user {{ firstname }} {{ lastname }}.{% endblocktrans %}.

+

{% blocktrans %}Confirm the email{% endblocktrans %} {{ email }} {% blocktrans %}for user {{ firstname }} {{ lastname }}.{% endblocktrans %}

{% trans "Confirm" as tr_confirm %} {% bootstrap_button tr_confirm button_type="submit" icon="ok" button_class="btn-success" %}
diff --git a/users/views.py b/users/views.py index 5b8b8e47..42dc48e2 100644 --- a/users/views.py +++ b/users/views.py @@ -1067,7 +1067,7 @@ def process_email(request, req): return redirect(reverse("index")) return form( - {"email": user.email, "firstname": user.firstname, "lastname": user.surname}, + {"email": user.email, "firstname": user.name, "lastname": user.surname}, "users/confirm_email.html", request )