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"]
|
||||
]
|
||||
# --- 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()
|
||||
|
Loading…
Reference in New Issue
Block a user