Merge remote-tracking branch 'refs/remotes/Gimli/data_migrations' into data_migrations
This commit is contained in:
commit
a82230e1fe
1 changed files with 3 additions and 3 deletions
|
@ -1204,7 +1204,7 @@ def prihlaskaView(request):
|
||||||
generic_logger.info("Form valid")
|
generic_logger.info("Form valid")
|
||||||
fcd = form.cleaned_data
|
fcd = form.cleaned_data
|
||||||
form_hash = hash(frozenset(fcd.items()))
|
form_hash = hash(frozenset(fcd.items()))
|
||||||
form_logger.info(fcd,form_hash) # TODO takhle log nefunguje, ale ta předchozí varianta dokonce padala
|
form_logger.info(str(fcd) + str(form_hash)) # TODO možná logovat jinak
|
||||||
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
u = User.objects.create_user(
|
u = User.objects.create_user(
|
||||||
|
@ -1234,7 +1234,7 @@ def prihlaskaView(request):
|
||||||
else:
|
else:
|
||||||
# Unknown country - log it
|
# Unknown country - log it
|
||||||
msg = "Unknown country {}".format(fcd['stat_text'])
|
msg = "Unknown country {}".format(fcd['stat_text'])
|
||||||
err_logger.warn(msg,form_hash) # TODO viz výše
|
err_logger.warn(msg + str(form_hash))
|
||||||
|
|
||||||
o.save()
|
o.save()
|
||||||
o.user = u
|
o.user = u
|
||||||
|
@ -1252,7 +1252,7 @@ def prihlaskaView(request):
|
||||||
else:
|
else:
|
||||||
# Unknown school - log it
|
# Unknown school - log it
|
||||||
msg = "Unknown school {}, {}".format(fcd['skola_nazev'],fcd['skola_adresa'])
|
msg = "Unknown school {}, {}".format(fcd['skola_nazev'],fcd['skola_adresa'])
|
||||||
err_logger.warn(msg,form_hash) # TODO viz výše
|
err_logger.warn(msg + str(form_hash))
|
||||||
r.save()
|
r.save()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue