|
|
@ -22,7 +22,7 @@ from .models import Problem, Cislo, Reseni, Nastaveni, Rocnik, Soustredeni, Orga |
|
|
|
#from .models import VysledkyZaCislo, VysledkyKCisluZaRocnik, VysledkyKCisluOdjakziva |
|
|
|
from . import utils |
|
|
|
from .unicodecsv import UnicodeWriter |
|
|
|
from .forms import PrihlaskaForm, LoginForm, EditForm |
|
|
|
from .forms import PrihlaskaForm, LoginForm, ProfileEditForm |
|
|
|
import seminar.forms as f |
|
|
|
|
|
|
|
from datetime import timedelta, date, datetime |
|
|
@ -1207,10 +1207,10 @@ def resitelEditView(request): |
|
|
|
prefill_3=model_to_dict(osoba_edit) |
|
|
|
prefill_1.update(prefill_2) |
|
|
|
prefill_1.update(prefill_3) |
|
|
|
form = EditForm(initial=prefill_1) |
|
|
|
form = ProfileEditForm(initial=prefill_1) |
|
|
|
## Změna údajů a jejich uložení |
|
|
|
if request.method == 'POST': |
|
|
|
form = EditForm(request.POST) |
|
|
|
form = ProfileEditForm(request.POST) |
|
|
|
if form.is_valid(): |
|
|
|
## Změny v osobě |
|
|
|
fcd = form.cleaned_data |
|
|
|