Browse Source

Fix Logování editace

middleware_test
Jonas Havelka 3 years ago
parent
commit
f682af8e8f
  1. 3
      seminar/views/views_all.py

3
seminar/views/views_all.py

@ -1162,6 +1162,9 @@ def resitelEditView(request):
form = PoMaturiteProfileEditForm(POST) form = PoMaturiteProfileEditForm(POST)
else: else:
form = ProfileEditForm(POST) 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(): if form.is_valid():
## Změny v osobě ## Změny v osobě
fcd = form.cleaned_data fcd = form.cleaned_data

Loading…
Cancel
Save