Remove weird password from 5.1

This commit is contained in:
jbdoderlein 2024-08-13 10:20:18 +00:00
parent 8e20bdc3e3
commit 5cd52ce768
2 changed files with 1 additions and 1 deletions

View file

@ -10,6 +10,7 @@ from note_kfet.inputs import AmountInput
class SignUpForm(UserCreationForm): class SignUpForm(UserCreationForm):
usable_password = None
""" """
Pre-register users with all information Pre-register users with all information
""" """

View file

@ -41,7 +41,6 @@ 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(self.request.POST if self.request.POST else None) 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["report_frequency"]
del context["profile_form"].fields["last_report"] del context["profile_form"].fields["last_report"]