From b09dc63fe3bf745ed17a9e15257b18ef14be4532 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 18 Dec 2022 20:56:17 -0300 Subject: [PATCH] N'exporte pas le ref. comp. dans les formations --- app/models/formations.py | 3 +++ sco_version.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/formations.py b/app/models/formations.py index 7f99d4f76..f1947f731 100644 --- a/app/models/formations.py +++ b/app/models/formations.py @@ -67,6 +67,9 @@ class Formation(db.Model): """ e = dict(self.__dict__) e.pop("_sa_instance_state", None) + e.pop("referentiel_competence_id") + if "referentiel_competence" in e: + e.pop("referentiel_competence") e["departement"] = self.departement.to_dict() e["formation_id"] = self.id # ScoDoc7 backward compat if with_refcomp_attrs and self.referentiel_competence: diff --git a/sco_version.py b/sco_version.py index 7db68e86c..48027b235 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.17" +SCOVERSION = "9.4.18" SCONAME = "ScoDoc"