Fix Logování editace

This commit is contained in:
Jonas Havelka 2021-09-05 20:57:42 +02:00
parent 835f987797
commit f682af8e8f

View file

@ -1162,6 +1162,9 @@ 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