Fix: formulaire création formseemstre

This commit is contained in:
Emmanuel Viennet 2023-11-16 11:08:48 +01:00
parent 6cedf99e5e
commit bb9995fca6

View File

@ -986,10 +986,11 @@ def do_formsemestre_createwithmodules(edit=False, formsemestre: FormSemestre = N
for parcour_id_str in tf[2]["parcours"]
]
# --- Id edt du groupe par défault
group_tous = formsemestre.get_default_group()
if group_tous:
group_tous.edt_id = tf[2]["edt_promo_id"]
db.session.add(group_tous)
if "edt_promo_id" in tf[2]:
group_tous = formsemestre.get_default_group()
if group_tous:
group_tous.edt_id = tf[2]["edt_promo_id"]
db.session.add(group_tous)
db.session.add(formsemestre)
db.session.commit()