From 169bf17fdd9588eca7e3557c901118d166d703b9 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 1 Mar 2024 12:03:00 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20colonne=20r=C3=A9f=C3=A9rentiel=20?= =?UTF-8?q?=C3=A0=20la=20table=20des=20formations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formations.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/scodoc/sco_formations.py b/app/scodoc/sco_formations.py index 4f9a9bb7..125e8215 100644 --- a/app/scodoc/sco_formations.py +++ b/app/scodoc/sco_formations.py @@ -527,6 +527,12 @@ def formation_list_table() -> GenTable: "_titre_id": f"""titre-{acronyme_no_spaces}""", "version": formation.version or 0, "commentaire": formation.commentaire or "", + "referentiel": ( + f"""{formation.referentiel_competence.specialite} { + formation.referentiel_competence.get_version()}""" + if formation.referentiel_competence + else "" + ), } # Ajoute les semestres associés à chaque formation: row["formsemestres"] = formation.formsemestres.order_by( @@ -603,6 +609,7 @@ def formation_list_table() -> GenTable: "formation_code", "version", "titre", + "referentiel", "commentaire", "sems_list_txt", ) @@ -615,6 +622,7 @@ def formation_list_table() -> GenTable: "version": "Version", "formation_code": "Code", "sems_list_txt": "Semestres", + "referentiel": "Réf.", } return GenTable( columns_ids=columns_ids,