forked from ScoDoc/ScoDoc
formsemestre_validation_but: message erreur si étudiant non inscrit
This commit is contained in:
parent
72fe741f62
commit
2224500209
@ -265,8 +265,10 @@ def formsemestre_validation_but(
|
||||
"""<div class="jury_but">
|
||||
""",
|
||||
]
|
||||
|
||||
if formsemestre.etuds_inscriptions[etudid].etat != scu.INSCRIT:
|
||||
inscription = formsemestre.etuds_inscriptions.get(etudid)
|
||||
if not inscription:
|
||||
raise ScoValueError("étudiant non inscrit au semestre")
|
||||
if inscription.etat != scu.INSCRIT:
|
||||
return (
|
||||
"\n".join(H)
|
||||
+ f"""
|
||||
|
Loading…
Reference in New Issue
Block a user