From d193610b3737bfde11b5b0b95781a1fffc33094c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 10 Sep 2023 19:46:50 +0200 Subject: [PATCH] =?UTF-8?q?API=20formsemestre:=20n'exporte=20pas=20groups?= =?UTF-8?q?=5Fauto=5Fassignment=5Fdata=20sauf=20via=20la=20route=20d=C3=A9?= =?UTF-8?q?di=C3=A9e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/formsemestre.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/formsemestre.py b/app/models/formsemestre.py index 20a1cf359..e29ffbfc3 100644 --- a/app/models/formsemestre.py +++ b/app/models/formsemestre.py @@ -195,6 +195,7 @@ class FormSemestre(db.Model): """ d = dict(self.__dict__) d.pop("_sa_instance_state", None) + d.pop("groups_auto_assignment_data", None) # ScoDoc7 output_formators: (backward compat) d["formsemestre_id"] = self.id d["titre_num"] = self.titre_num() @@ -226,6 +227,7 @@ class FormSemestre(db.Model): """ d = dict(self.__dict__) d.pop("_sa_instance_state", None) + d.pop("groups_auto_assignment_data", None) d["annee_scolaire"] = self.annee_scolaire() if self.date_debut: d["date_debut"] = self.date_debut.strftime("%d/%m/%Y")