ajout id orebut dans les niveaux de comp.

This commit is contained in:
Emmanuel Viennet 2022-01-08 17:22:51 +01:00
parent c362ccef0e
commit 72b8e04064
2 changed files with 4 additions and 1 deletions

View File

@ -271,7 +271,10 @@ class ApcAnneeParcours(db.Model, XMLModel):
return { return {
"ordre": self.ordre, "ordre": self.ordre,
"competences": { "competences": {
x.competence.titre: {"niveau": x.niveau} x.competence.titre: {
"niveau": x.niveau,
"id_orebut": x.competence.id_orebut,
}
for x in self.niveaux_competences for x in self.niveaux_competences
}, },
} }