forked from ScoDoc/ScoDoc
API: module-edit, ue-edit
This commit is contained in:
parent
5ec598e693
commit
7e85f7b192
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user