Commit 3226134f authored by raida's avatar raida

Après 30 minutes de recherche... 'entranger' != 'etranger'...

parent 6449a1e0
......@@ -795,7 +795,7 @@ class WEI1AForm(BootstrapForm):
note = forms.CharField(max_length=510, label=_(u"Nom de note"))
infos = forms.CharField(max_length=510, widget=forms.Textarea, label=_(u"Infos importantes (Allergies, intolérances, -18ans, végétarien, problèmes de santé ...)"), required=False)
soge = forms.BooleanField(required=False, label=_(u"Paiement du WEI avec la Société Générale ?"))
entranger = forms.BooleanField(required=False, label=_(u"Étudiant étrangé ?"))
etranger = forms.BooleanField(required=False, label=_(u"Étudiant étrangé ?"))
def clean_infos(self):
data = self.cleaned_data['infos']
......
......@@ -1654,7 +1654,7 @@ def WEI1A(request, sock, kwargs):
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"]["etranger"] = form.cleaned_data["etranger"]
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