mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Remet le field email dans UserForm et AdherentForm
This commit is contained in:
parent
ea7ea032f0
commit
1c75edb24f
1 changed files with 2 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue