forked from ScoDoc/ScoDoc
API formsemestre: n'exporte pas groups_auto_assignment_data sauf via la route dédiée.
This commit is contained in:
parent
4c2ea34058
commit
d193610b37
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user