1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

fix signup

This commit is contained in:
Pierre-antoine Comby 2020-02-03 19:24:23 +01:00
parent af30a4cd16
commit e80163ce4d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>