API: module-edit, ue-edit

This commit is contained in:
Emmanuel Viennet 2024-07-03 22:42:38 +02:00
parent 5ec598e693
commit 7e85f7b192

View File

@ -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: