forked from ScoDoc/ScoDoc
Ajout colonne référentiel à la table des formations
This commit is contained in:
parent
75d4c110a8
commit
169bf17fdd
@ -527,6 +527,12 @@ def formation_list_table() -> GenTable:
|
|||||||
"_titre_id": f"""titre-{acronyme_no_spaces}""",
|
"_titre_id": f"""titre-{acronyme_no_spaces}""",
|
||||||
"version": formation.version or 0,
|
"version": formation.version or 0,
|
||||||
"commentaire": formation.commentaire or "",
|
"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:
|
# Ajoute les semestres associés à chaque formation:
|
||||||
row["formsemestres"] = formation.formsemestres.order_by(
|
row["formsemestres"] = formation.formsemestres.order_by(
|
||||||
@ -603,6 +609,7 @@ def formation_list_table() -> GenTable:
|
|||||||
"formation_code",
|
"formation_code",
|
||||||
"version",
|
"version",
|
||||||
"titre",
|
"titre",
|
||||||
|
"referentiel",
|
||||||
"commentaire",
|
"commentaire",
|
||||||
"sems_list_txt",
|
"sems_list_txt",
|
||||||
)
|
)
|
||||||
@ -615,6 +622,7 @@ def formation_list_table() -> GenTable:
|
|||||||
"version": "Version",
|
"version": "Version",
|
||||||
"formation_code": "Code",
|
"formation_code": "Code",
|
||||||
"sems_list_txt": "Semestres",
|
"sems_list_txt": "Semestres",
|
||||||
|
"referentiel": "Réf.",
|
||||||
}
|
}
|
||||||
return GenTable(
|
return GenTable(
|
||||||
columns_ids=columns_ids,
|
columns_ids=columns_ids,
|
||||||
|
Loading…
Reference in New Issue
Block a user