Merge branch 'master' of https://scodoc.org/git/ScoDoc/ScoDoc into api

This commit is contained in:
leonard_montalbano 2022-03-02 16:45:07 +01:00
commit e9656dc07f

View File

@ -206,7 +206,11 @@ class FormSemestre(db.Model):
modimpls = self.modimpls.all()
if self.formation.is_apc():
modimpls.sort(
key=lambda m: (m.module.module_type, m.module.numero, m.module.code)
key=lambda m: (
m.module.module_type or 0,
m.module.numero or 0,
m.module.code or 0,
)
)
else:
modimpls.sort(