mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +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):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context["user_form"] = self.second_form
|
||||
context["profile_form"] = self.second_form()
|
||||
|
||||
return context
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
{{ user_form|crispy }}
|
||||
{{ profile_form|crispy }}
|
||||
<button class="btn btn-link" type="submit">
|
||||
{% trans "Sign Up" %}
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user