Robustifie code effacement décision
This commit is contained in:
parent
9b3df5febf
commit
90c1454b21
@ -865,11 +865,16 @@ class DecisionsProposeesAnnee(DecisionsProposees):
|
||||
self.etud.id, self.formsemestre.id
|
||||
)
|
||||
for dec_ue in self.decisions_ues.values():
|
||||
if dec_ue.formsemestre.id == self.formsemestre.id:
|
||||
if (
|
||||
dec_ue
|
||||
and self.formsemestre
|
||||
and dec_ue.formsemestre.id == self.formsemestre.id
|
||||
):
|
||||
dec_ue.erase()
|
||||
else:
|
||||
for dec_ue in self.decisions_ues.values():
|
||||
dec_ue.erase()
|
||||
if dec_ue:
|
||||
dec_ue.erase()
|
||||
|
||||
if self.formsemestre_impair:
|
||||
ScolarAutorisationInscription.delete_autorisation_etud(
|
||||
|
Loading…
Reference in New Issue
Block a user