From 6c34742cc47af01b1a7882f683bec6d741f8afad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Thu, 23 Feb 2017 10:36:25 +0100 Subject: [PATCH] Remove an erroneous RegistrationUserForm This form appeared twice in `cof/forms.py` and the second occurrence (which was used by the views) was erroneous. --- cof/forms.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cof/forms.py b/cof/forms.py index eac9f2ed..6ab88210 100644 --- a/cof/forms.py +++ b/cof/forms.py @@ -185,7 +185,7 @@ class RegistrationUserForm(forms.ModelForm): class Meta: model = User - fields = ("username", "first_name", "last_name", "email") + fields = ["username", "first_name", "last_name", "email"] class RegistrationPassUserForm(RegistrationUserForm): @@ -250,12 +250,6 @@ class RegistrationProfileForm(forms.ModelForm): ] -class RegistrationUserForm(forms.ModelForm): - class Meta: - model = User - fields = ["first_name", "last_name"] - - STATUS_CHOICES = (('no', 'Non'), ('wait', 'Oui mais attente paiement'), ('paid', 'Oui payƩ'),)