|
|
@ -1125,10 +1125,13 @@ def resitelEditView(request): |
|
|
|
form = ProfileEditForm(initial=prefill_1) |
|
|
|
## Změna údajů a jejich uložení |
|
|
|
if request.method == 'POST': |
|
|
|
POST = request.POST.copy() |
|
|
|
POST["username"] = osoba_edit.user.username |
|
|
|
|
|
|
|
if 'rok_maturity' not in prefill_1 or prefill_1['rok_maturity'] < date.today().year: |
|
|
|
form = PoMaturiteProfileEditForm(request.POST) |
|
|
|
form = PoMaturiteProfileEditForm(POST) |
|
|
|
else: |
|
|
|
form = ProfileEditForm(request.POST) |
|
|
|
form = ProfileEditForm(POST) |
|
|
|
if form.is_valid(): |
|
|
|
## Změny v osobě |
|
|
|
fcd = form.cleaned_data |
|
|
|