Skip to content

Commit

Permalink
fix: rebuild cache on after_delete event
Browse files Browse the repository at this point in the history
At the time of the on_trash event, the data is still present.
  • Loading branch information
barredterra committed Sep 26, 2023
1 parent 04c2635 commit 535a763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FishSpecies(Document):
def on_update(self):
build_fish_species_cache()

def on_trash(self):
def after_delete(self):
build_fish_species_cache()

def after_rename(self, old, new, merge):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class WaterBodyManagementLocalOrganization(Document):
def on_update(self):
rebuild_water_body_cache(self.fishing_area)

def on_trash(self):
def after_delete(self):
rebuild_water_body_cache(self.fishing_area)

0 comments on commit 535a763

Please sign in to comment.