forked from ScoDoc/ScoDoc
Fix: formulaire création formseemstre
This commit is contained in:
parent
6cedf99e5e
commit
bb9995fca6
@ -986,10 +986,11 @@ def do_formsemestre_createwithmodules(edit=False, formsemestre: FormSemestre = N
|
|||||||
for parcour_id_str in tf[2]["parcours"]
|
for parcour_id_str in tf[2]["parcours"]
|
||||||
]
|
]
|
||||||
# --- Id edt du groupe par défault
|
# --- Id edt du groupe par défault
|
||||||
group_tous = formsemestre.get_default_group()
|
if "edt_promo_id" in tf[2]:
|
||||||
if group_tous:
|
group_tous = formsemestre.get_default_group()
|
||||||
group_tous.edt_id = tf[2]["edt_promo_id"]
|
if group_tous:
|
||||||
db.session.add(group_tous)
|
group_tous.edt_id = tf[2]["edt_promo_id"]
|
||||||
|
db.session.add(group_tous)
|
||||||
|
|
||||||
db.session.add(formsemestre)
|
db.session.add(formsemestre)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user