From e758c8778ef4fcf365145fa64f76be8aa9756772 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 1 Sep 2022 15:25:34 +0200 Subject: [PATCH] Fix #483 --- app/models/modules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/modules.py b/app/models/modules.py index 9052f94b6..31d3d9767 100644 --- a/app/models/modules.py +++ b/app/models/modules.py @@ -121,7 +121,9 @@ class Module(db.Model): présentation par type (res, sae), parcours, type, numéro """ if ( - len(self.parcours) == self.formation.referentiel_competence.parcours.count() + self.formation.referentiel_competence is None + or len(self.parcours) + == self.formation.referentiel_competence.parcours.count() or len(self.parcours) == 0 ): key_parcours = ""