🐛 Fix signup
This commit is contained in:
parent
21f1347a60
commit
9c3e978a41
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class UserCreateView(CreateView):
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**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"]
|
del context["profile_form"].fields["section"]
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue