From 7e85f7b1928d0b0e28df0af81a2f15cea13b4b18 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 3 Jul 2024 22:42:38 +0200 Subject: [PATCH] API: module-edit, ue-edit --- app/models/modules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/modules.py b/app/models/modules.py index b5f90c788..d0b159b7a 100644 --- a/app/models/modules.py +++ b/app/models/modules.py @@ -226,7 +226,9 @@ class Module(models.ScoDocModel): else: d["parcours"] = [p.to_dict() for p in self.parcours] d["ue_coefs"] = [ - c.to_dict(convert_objects=convert_objects) for c in self.ue_coefs + c.to_dict(convert_objects=False) + for c in self.ue_coefs + # note: don't convert_objects: we do wan't the details of the UEs here ] d["app_critiques"] = {x.code: x.to_dict() for x in self.app_critiques} if not with_matiere: