Remove an erroneous RegistrationUserForm

This form appeared twice in `cof/forms.py` and the second occurrence
(which was used by the views) was erroneous.
This commit is contained in:
Martin Pépin 2017-02-23 10:36:25 +01:00
parent 7abcf28666
commit 6c34742cc4

View file

@ -185,7 +185,7 @@ class RegistrationUserForm(forms.ModelForm):
class Meta: class Meta:
model = User model = User
fields = ("username", "first_name", "last_name", "email") fields = ["username", "first_name", "last_name", "email"]
class RegistrationPassUserForm(RegistrationUserForm): 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'), STATUS_CHOICES = (('no', 'Non'),
('wait', 'Oui mais attente paiement'), ('wait', 'Oui mais attente paiement'),
('paid', 'Oui payé'),) ('paid', 'Oui payé'),)