Revert "V osobních údajích lze změnit username"

This reverts commit 76591c9916.
This commit is contained in:
Jonas Havelka 2021-08-29 17:15:14 +02:00
parent 37d73a311f
commit 2a1c6b56c2

View file

@ -1132,7 +1132,6 @@ def resitelEditView(request):
if form.is_valid(): if form.is_valid():
## Změny v osobě ## Změny v osobě
fcd = form.cleaned_data fcd = form.cleaned_data
osoba_edit.user.username = fcd['username']
osoba_edit.jmeno = fcd['jmeno'] osoba_edit.jmeno = fcd['jmeno']
osoba_edit.prijmeni = fcd['prijmeni'] osoba_edit.prijmeni = fcd['prijmeni']
osoba_edit.pohlavi_muz = fcd['pohlavi_muz'] osoba_edit.pohlavi_muz = fcd['pohlavi_muz']