From feb0c219eaa684de3ea26c41c25b411411516878 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Mon, 30 Aug 2021 17:54:48 +0200 Subject: [PATCH] =?UTF-8?q?Zak=C3=A1z=C3=A1na=20editace=20username?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/forms.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/seminar/forms.py b/seminar/forms.py index fb183be9..dc0ae7f7 100644 --- a/seminar/forms.py +++ b/seminar/forms.py @@ -144,9 +144,10 @@ class PrihlaskaForm(forms.Form): class ProfileEditForm(forms.Form): - username = forms.CharField(label='Přihlašovací jméno', - max_length=256, - required=True) + username = forms.CharField(label='Přihlašovací jméno', + max_length=256, + required=True, + disabled=True) jmeno = forms.CharField(label='Jméno', max_length=256, required=True) prijmeni = forms.CharField(label='Příjmení', max_length=256, required=True)