From d0b700074752e0cf2768fefd289f327f01f9d064 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sat, 19 Sep 2020 19:14:44 +0200 Subject: [PATCH] =?UTF-8?q?Emp=C3=AAche=20la=20modification=20des=20inform?= =?UTF-8?q?ations=20COF=20lors=20de=20la=20cr=C3=A9ation=20d'un=20compte?= =?UTF-8?q?=20K-Psul?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kfet/views.py b/kfet/views.py index 2afbfbc5..bb45b1fb 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -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