Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 90c1454b21 - Show all commits

View File

@ -865,11 +865,16 @@ class DecisionsProposeesAnnee(DecisionsProposees):
self.etud.id, self.formsemestre.id self.etud.id, self.formsemestre.id
) )
for dec_ue in self.decisions_ues.values(): 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() dec_ue.erase()
else: else:
for dec_ue in self.decisions_ues.values(): for dec_ue in self.decisions_ues.values():
dec_ue.erase() if dec_ue:
dec_ue.erase()
if self.formsemestre_impair: if self.formsemestre_impair:
ScolarAutorisationInscription.delete_autorisation_etud( ScolarAutorisationInscription.delete_autorisation_etud(