|
|
@ -161,7 +161,7 @@ def prihlaska_log_gdpr_safe(logger, gdpr_logger, msg, form_data): |
|
|
|
|
|
|
|
@sensitive_post_parameters('jmeno', 'prijmeni', 'email', 'telefon', 'datum_narozeni', 'ulice', 'mesto', 'psc', 'skola') |
|
|
|
def resitelEditView(request): |
|
|
|
err_logger = logging.getLogger('seminar.prihlaska.problem') |
|
|
|
err_logger = logging.getLogger('personalni.prihlaska.problem') |
|
|
|
## Načtení objektů Osoba a Resitel patřících k aktuálně přihlášenému uživateli |
|
|
|
u = request.user |
|
|
|
osoba_edit = m.Osoba.objects.get(user=u) |
|
|
@ -199,7 +199,7 @@ def resitelEditView(request): |
|
|
|
## Změny v osobě |
|
|
|
fcd = form.cleaned_data |
|
|
|
form_hash = hash(frozenset(fcd.items())) |
|
|
|
form_logger = logging.getLogger('seminar.prihlaska.form') |
|
|
|
form_logger = logging.getLogger('personalni.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'] |
|
|
@ -248,9 +248,9 @@ def resitelEditView(request): |
|
|
|
|
|
|
|
@sensitive_post_parameters('jmeno', 'prijmeni', 'email', 'telefon', 'datum_narozeni', 'ulice', 'mesto', 'psc', 'skola', 'jak_se_dozvedeli') |
|
|
|
def prihlaskaView(request): |
|
|
|
generic_logger = logging.getLogger('seminar.prihlaska') |
|
|
|
err_logger = logging.getLogger('seminar.prihlaska.problem') |
|
|
|
form_logger = logging.getLogger('seminar.prihlaska.form') |
|
|
|
generic_logger = logging.getLogger('personalni.prihlaska') |
|
|
|
err_logger = logging.getLogger('personalni.prihlaska.problem') |
|
|
|
form_logger = logging.getLogger('personalni.prihlaska.form') |
|
|
|
if request.method == 'POST': |
|
|
|
form = PrihlaskaForm(request.POST) |
|
|
|
# TODO vyresit, co se bude v jakych situacich zobrazovat |
|
|
|