Commit da8a773e authored by Michal Čihař's avatar Michal Čihař

Delete stale checks and update cache

parent a46a65d8
...@@ -891,8 +891,10 @@ class Unit(models.Model): ...@@ -891,8 +891,10 @@ class Unit(models.Model):
# Delete all checks if only message with this source is fuzzy # Delete all checks if only message with this source is fuzzy
if not same_source.exists(): if not same_source.exists():
self.checks().delete() checks = self.checks()
self.translation.invalidate_cache() if checks.exists():
checks.delete()
self.update_has_failing_check(True)
return return
# If there is no consistency checking, we can return # If there is no consistency checking, we can return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment