forked from DGNum/gestioCOF
Empêche la modification des informations COF lors de la création d'un compte K-Psul
This commit is contained in:
parent
84ff0d7182
commit
d0b7000747
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):
|
def account_form_set_readonly_fields(user_form, cof_form):
|
||||||
user_form.fields["username"].widget.attrs["readonly"] = True
|
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["login_clipper"].widget.attrs["readonly"] = True
|
||||||
|
cof_form.fields["departement"].widget.attrs["readonly"] = True
|
||||||
cof_form.fields["is_cof"].widget.attrs["disabled"] = True
|
cof_form.fields["is_cof"].widget.attrs["disabled"] = True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue