Skip to content

Commit

Permalink
component: Schedule checks update upon translation removal
Browse files Browse the repository at this point in the history
Removing translation might remove checks that have triggered multiple
failing checks.

See #9234
  • Loading branch information
nijel committed May 16, 2023
1 parent 11eb7f2 commit ea18d1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weblate/trans/models/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,7 @@ def remove(self, user):
# Delete from the database
self.stats.invalidate()
self.delete()
transaction.on_commit(self.component.schedule_update_checks)

# Record change
Change.objects.create(
Expand Down

0 comments on commit ea18d1d

Please sign in to comment.