Fix: modif semestre avec inscriptions sans parcours

This commit is contained in:
Emmanuel Viennet 2022-11-04 11:41:03 +01:00
parent 564ecee186
commit 0c3b9a364c
1 changed files with 2 additions and 1 deletions

View File

@ -606,7 +606,8 @@ class FormSemestre(db.Model):
[
inscr
for inscr in self.inscriptions
if inscr.parcour.code == group.group_name
if (inscr.parcour is not None)
and inscr.parcour.code == group.group_name
]
)
== 0