Browse Source

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

middleware_test
Jonas Havelka 3 years ago
parent
commit
76591c9916
  1. 1
      seminar/views/views_all.py

1
seminar/views/views_all.py

@ -1132,6 +1132,7 @@ 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']

Loading…
Cancel
Save