Remove weird password from 5.1
This commit is contained in:
parent
8e20bdc3e3
commit
5cd52ce768
2 changed files with 1 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ from note_kfet.inputs import AmountInput
|
|||
|
||||
|
||||
class SignUpForm(UserCreationForm):
|
||||
usable_password = None
|
||||
"""
|
||||
Pre-register users with all information
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ class UserCreateView(CreateView):
|
|||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
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["report_frequency"]
|
||||
del context["profile_form"].fields["last_report"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue