forked from ScoDoc/ScoDoc
Fix #576: invalidation cache lors des modifs assoc UE/refcomp
This commit is contained in:
parent
d3248a37ad
commit
16b0ad437d
@ -219,6 +219,8 @@ class UniteEns(db.Model):
|
||||
|
||||
db.session.add(self)
|
||||
db.session.commit()
|
||||
# Invalidation du cache
|
||||
self.formation.invalidate_cached_sems()
|
||||
log(f"ue.set_niveau_competence( {self}, {niveau} )")
|
||||
|
||||
def set_parcour(self, parcour: ApcParcours):
|
||||
@ -246,6 +248,8 @@ class UniteEns(db.Model):
|
||||
self.niveau_competence = None
|
||||
db.session.add(self)
|
||||
db.session.commit()
|
||||
# Invalidation du cache
|
||||
self.formation.invalidate_cached_sems()
|
||||
log(f"ue.set_parcour( {self}, {parcour} )")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user