Fix exception si module sans matiere
This commit is contained in:
parent
f74713ac09
commit
52dfa16a69
@ -321,7 +321,7 @@ def module_edit(
|
||||
matieres = [
|
||||
mat
|
||||
for mat in matieres
|
||||
if ((module is not None) and (module.matiere.id == mat.id))
|
||||
if (module and module.matiere and (module.matiere.id == mat.id))
|
||||
or (mat.id == mat.ue.matieres.first().id)
|
||||
]
|
||||
mat_names = [
|
||||
|
Loading…
Reference in New Issue
Block a user