forked from DGNum/gestioCOF
Merge branch 'thubrecht/creation-compte' into 'master'
Empêche la modification des informations COF lors de la création d'un compte K-Psul Closes #230 See merge request klub-dev-ens/gestioCOF!464
This commit is contained in:
commit
d172dad0ab
1 changed files with 4 additions and 0 deletions
|
@ -192,7 +192,11 @@ def account_create(request):
|
|||
|
||||
def account_form_set_readonly_fields(user_form, cof_form):
|
||||
user_form.fields["username"].widget.attrs["readonly"] = True
|
||||
user_form.fields["first_name"].widget.attrs["readonly"] = True
|
||||
user_form.fields["last_name"].widget.attrs["readonly"] = True
|
||||
user_form.fields["email"].widget.attrs["readonly"] = True
|
||||
cof_form.fields["login_clipper"].widget.attrs["readonly"] = True
|
||||
cof_form.fields["departement"].widget.attrs["readonly"] = True
|
||||
cof_form.fields["is_cof"].widget.attrs["disabled"] = True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue