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">
|
"""<div class="jury_but">
|
||||||
""",
|
""",
|
||||||
]
|
]
|
||||||
|
inscription = formsemestre.etuds_inscriptions.get(etudid)
|
||||||
if formsemestre.etuds_inscriptions[etudid].etat != scu.INSCRIT:
|
if not inscription:
|
||||||
|
raise ScoValueError("étudiant non inscrit au semestre")
|
||||||
|
if inscription.etat != scu.INSCRIT:
|
||||||
return (
|
return (
|
||||||
"\n".join(H)
|
"\n".join(H)
|
||||||
+ f"""
|
+ f"""
|
||||||
|
Loading…
Reference in New Issue
Block a user