8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

A granted user can set active at creation

This commit is contained in:
Gabriel Detraz 2019-01-05 16:19:38 +01:00 committed by root
parent 4f2c1dcbb4
commit 20e1ee3bb4

View file

@ -387,6 +387,20 @@ class AdherentCreationForm(AdherentForm):
#gtu_check.label = mark_safe("{} <a href='/media/{}' download='CGU'>{}</a>{}".format(
# _("I commit to accept the"), GeneralOption.get_cached_value('GTU'), _("General Terms of Use"), _(".")))
class Meta:
model = Adherent
fields = [
'name',
'surname',
'pseudo',
'email',
'school',
'comment',
'telephone',
'room',
'state',
]
def __init__(self, *args, **kwargs):
super(AdherentCreationForm, self).__init__(*args, **kwargs)