Fix Logování editu
This commit is contained in:
parent
f79ea57165
commit
5ac195e63b
1 changed files with 3 additions and 3 deletions
|
@ -1162,12 +1162,12 @@ def resitelEditView(request):
|
|||
form = PoMaturiteProfileEditForm(POST)
|
||||
else:
|
||||
form = ProfileEditForm(POST)
|
||||
form_hash = hash(frozenset(form.items()))
|
||||
form_logger = logging.getLogger('seminar.prihlaska.form')
|
||||
form_logger.info("EDIT:" + str(form) + str(form_hash)) # TODO možná logovat jinak
|
||||
if form.is_valid():
|
||||
## Změny v osobě
|
||||
fcd = form.cleaned_data
|
||||
form_hash = hash(frozenset(fcd.items()))
|
||||
form_logger = logging.getLogger('seminar.prihlaska.form')
|
||||
form_logger.info("EDIT:" + str(fcd) + str(form_hash)) # TODO možná logovat jinak
|
||||
osoba_edit.jmeno = fcd['jmeno']
|
||||
osoba_edit.prijmeni = fcd['prijmeni']
|
||||
osoba_edit.pohlavi_muz = fcd['pohlavi_muz']
|
||||
|
|
Loading…
Reference in a new issue