mirror of https://gitlab.crans.org/bde/nk20
🐛 Fix signup
This commit is contained in:
parent
af857d6fae
commit
21f1347a60
|
@ -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()
|
context["profile_form"] = self.second_form(self.request.POST)
|
||||||
del context["profile_form"].fields["section"]
|
del context["profile_form"].fields["section"]
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans "Account activation" %}</h2>
|
<h2>{% trans "Account activation" %}</h2>
|
||||||
|
|
Loading…
Reference in New Issue