mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
fix signup
This commit is contained in:
parent
af30a4cd16
commit
e80163ce4d
@ -36,7 +36,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["user_form"] = self.second_form
|
context["profile_form"] = self.second_form()
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form|crispy }}
|
{{ form|crispy }}
|
||||||
{{ user_form|crispy }}
|
{{ profile_form|crispy }}
|
||||||
<button class="btn btn-link" type="submit">
|
<button class="btn btn-link" type="submit">
|
||||||
{% trans "Sign Up" %}
|
{% trans "Sign Up" %}
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user