From 9c3e978a4170404a1088eddc83fd4ddf1996db9f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 5 Aug 2020 16:27:44 +0200 Subject: [PATCH] :bug: Fix signup --- apps/registration/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/registration/views.py b/apps/registration/views.py index 95f271b1..41a9a405 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(self.request.POST) + context["profile_form"] = self.second_form(self.request.POST if self.request.POST else None) del context["profile_form"].fields["section"] return context