From 5cd52ce768e3a409f1872c2543033912ff350d3a Mon Sep 17 00:00:00 2001 From: jbdoderlein Date: Tue, 13 Aug 2024 10:20:18 +0000 Subject: [PATCH] Remove weird password from 5.1 --- apps/registration/forms.py | 1 + apps/registration/views.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/registration/forms.py b/apps/registration/forms.py index 72cd922..9f1a2c6 100644 --- a/apps/registration/forms.py +++ b/apps/registration/forms.py @@ -10,6 +10,7 @@ from note_kfet.inputs import AmountInput class SignUpForm(UserCreationForm): + usable_password = None """ Pre-register users with all information """ diff --git a/apps/registration/views.py b/apps/registration/views.py index a8614df..0b733ae 100644 --- a/apps/registration/views.py +++ b/apps/registration/views.py @@ -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"]