From 21f1347a606ec356a64803ac3dec756364478abd Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 5 Aug 2020 16:26:44 +0200 Subject: [PATCH] :bug: Fix signup --- apps/registration/views.py | 2 +- templates/registration/email_validation_email_sent.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/registration/views.py b/apps/registration/views.py index f4574b0f..95f271b1 100644 --- a/apps/registration/views.py +++ b/apps/registration/views.py @@ -39,7 +39,7 @@ class UserCreateView(CreateView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - context["profile_form"] = self.second_form() + context["profile_form"] = self.second_form(self.request.POST) del context["profile_form"].fields["section"] return context diff --git a/templates/registration/email_validation_email_sent.html b/templates/registration/email_validation_email_sent.html index 6167ee52..bb2bcea8 100644 --- a/templates/registration/email_validation_email_sent.html +++ b/templates/registration/email_validation_email_sent.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load i18n %} {% block content %}

{% trans "Account activation" %}