From a3e4c34745776785b4903c5fa81b671d1ed88316 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 30 Sep 2022 20:55:09 +0200 Subject: [PATCH] =?UTF-8?q?Bulletin=20:=20situation=20"inscrit"=20des=20d?= =?UTF-8?q?=C3=A9missionnaires=20#498?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/etudiants.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/models/etudiants.py b/app/models/etudiants.py index 5a88d3fd73..89bb90de84 100644 --- a/app/models/etudiants.py +++ b/app/models/etudiants.py @@ -278,11 +278,18 @@ class Identite(db.Model): inscription_courante = self.inscription_courante() if inscription_courante: titre_sem = inscription_courante.formsemestre.titre_mois() + if inscription_courante.etat == scu.DEMISSION: + inscr_txt = "Démission de" + elif inscription_courante.etat == scu.DEF: + inscr_txt = "Défaillant dans" + else: + inscr_txt = "Inscrit en" + return { "etat_in_cursem": inscription_courante.etat, "inscription_courante": inscription_courante, "inscription": titre_sem, - "inscription_str": "Inscrit en " + titre_sem, + "inscription_str": inscr_txt + " " + titre_sem, "situation": self.descr_situation_etud(), } else: