diff --git a/gestioncof/forms.py b/gestioncof/forms.py index 5fb3d0b3..3916da8d 100644 --- a/gestioncof/forms.py +++ b/gestioncof/forms.py @@ -184,14 +184,6 @@ class UserProfileForm(forms.ModelForm): super(UserProfileForm, self).__init__(*args, **kw) self.fields['first_name'].initial = self.instance.user.first_name self.fields['last_name'].initial = self.instance.user.last_name - self.fields.keyOrder = [ - 'first_name', - 'last_name', - 'phone', - 'mailing_cof', - 'mailing_bda', - 'mailing_bda_revente', - ] def save(self, *args, **kw): super(UserProfileForm, self).save(*args, **kw) @@ -201,8 +193,8 @@ class UserProfileForm(forms.ModelForm): class Meta: model = CofProfile - fields = ("phone", "mailing_cof", "mailing_bda", - "mailing_bda_revente", ) + fields = ["first_name", "last_name", "phone", "mailing_cof", + "mailing_bda", "mailing_bda_revente"] class RegistrationUserForm(forms.ModelForm):