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: