Commit 1b3deed5 authored by raida's avatar raida

Change booleans

parent ade98c41
......@@ -1645,16 +1645,16 @@ def WEI1A(request, sock, kwargs):
request.session["wei1A2019"]["genre"] = form.cleaned_data["genre"]
request.session["wei1A2019"]["adresse"] = form.cleaned_data["adresse"]
request.session["wei1A2019"]["mail"] = form.cleaned_data["mail"]
request.session["wei1A2019"]["ml_evenements"] = form.cleaned_data["ml_evenements"]
request.session["wei1A2019"]["normalien"] = form.cleaned_data["normalien"]
request.session["wei1A2019"]["ml_evenements"] = 't' if form.cleaned_data["ml_evenements"] else 'f'
request.session["wei1A2019"]["normalien"] = 't' if form.cleaned_data["normalien"] else 'f'
request.session["wei1A2019"]["tel"] = form.cleaned_data["tel"]
request.session["wei1A2019"]["urgence_nom"] = form.cleaned_data["urgence_nom"]
request.session["wei1A2019"]["urgence_tel"] = form.cleaned_data["urgence_tel"]
request.session["wei1A2019"]["dept"] = form.cleaned_data["dept"]
request.session["wei1A2019"]["note"] = form.cleaned_data["note"]
request.session["wei1A2019"]["infos"] = form.cleaned_data["infos"]
request.session["wei1A2019"]["soge"] = form.cleaned_data["soge"]
request.session["wei1A2019"]["etranger"] = form.cleaned_data["etranger"]
request.session["wei1A2019"]["soge"] = 't' if form.cleaned_data["soge"] else 'f'
request.session["wei1A2019"]["etranger"] = 't' if form.cleaned_data["etranger"] else 'f'
if out["retcode"] != 0:
messages.add_error(request, out["errmsg"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment