From 1c75edb24f51eae8afb53f2f5e1d0b0c3442e09b Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Sun, 5 Aug 2018 12:44:21 +0200 Subject: [PATCH] Remet le field email dans UserForm et AdherentForm --- users/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index cbffd961..b5859539 100644 --- a/users/forms.py +++ b/users/forms.py @@ -220,7 +220,7 @@ class UserChangeForm(FormRevMixin, forms.ModelForm): class Meta: model = Adherent - fields = ('pseudo', 'password', 'surname') + fields = ('pseudo', 'password', 'surname', 'email') def __init__(self, *args, **kwargs): prefix = kwargs.pop('prefix', self.Meta.model.__name__) @@ -313,6 +313,7 @@ class AdherentForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): 'name', 'surname', 'pseudo', + 'email', 'school', 'comment', 'room',