Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
re2o
Commits
20e1ee3b
Commit
20e1ee3b
authored
Jan 05, 2019
by
Gabriel Detraz
Committed by
root
Jan 05, 2019
Browse files
A granted user can set active at creation
parent
4f2c1dcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
users/forms.py
View file @
20e1ee3b
...
@@ -387,6 +387,20 @@ class AdherentCreationForm(AdherentForm):
...
@@ -387,6 +387,20 @@ class AdherentCreationForm(AdherentForm):
#gtu_check.label = mark_safe("{} <a href='/media/{}' download='CGU'>{}</a>{}".format(
#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"), _(".")))
# _("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
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
AdherentCreationForm
,
self
).
__init__
(
*
args
,
**
kwargs
)
super
(
AdherentCreationForm
,
self
).
__init__
(
*
args
,
**
kwargs
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment