forked from ScoDoc/ScoDoc
Fix: modimpls_sorted
This commit is contained in:
parent
750744094e
commit
912ee8b4da
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user