From 76591c9916d6a4125fca30b2398cbbda44a34a87 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Wed, 4 Aug 2021 18:47:11 +0200 Subject: [PATCH] =?UTF-8?q?V=20osobn=C3=ADch=20=C3=BAdaj=C3=ADch=20lze=20z?= =?UTF-8?q?m=C4=9Bnit=20username?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/views_all.py | 1 + 1 file changed, 1 insertion(+) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index a12bbc98..5521ee30 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -1132,6 +1132,7 @@ def resitelEditView(request): if form.is_valid(): ## Změny v osobě fcd = form.cleaned_data + osoba_edit.user.username = fcd['username'] osoba_edit.jmeno = fcd['jmeno'] osoba_edit.prijmeni = fcd['prijmeni'] osoba_edit.pohlavi_muz = fcd['pohlavi_muz']