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

This commit is contained in:
Jonas Havelka 2021-08-04 18:47:11 +02:00
parent ea1d87909c
commit 76591c9916

View file

@ -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']