1
0
forked from ScoDoc/ScoDoc

N'exporte pas le ref. comp. dans les formations

This commit is contained in:
Emmanuel Viennet 2022-12-18 20:56:17 -03:00 committed by iziram
parent 075d864de3
commit b09dc63fe3
2 changed files with 4 additions and 1 deletions

View File

@ -67,6 +67,9 @@ class Formation(db.Model):
""" """
e = dict(self.__dict__) e = dict(self.__dict__)
e.pop("_sa_instance_state", None) 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["departement"] = self.departement.to_dict()
e["formation_id"] = self.id # ScoDoc7 backward compat e["formation_id"] = self.id # ScoDoc7 backward compat
if with_refcomp_attrs and self.referentiel_competence: if with_refcomp_attrs and self.referentiel_competence:

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.4.17" SCOVERSION = "9.4.18"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"