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

Invalidate cache on checks deletion

When we delete checks for (now) a fuzzy message, the cache needs to be
invalidated.

This might be source of issue #233.
parent 6c1378a4
......@@ -795,6 +795,7 @@ class Unit(models.Model):
# Delete all checks if only message with this source is fuzzy
if not same_source.exists():
self.checks().delete()
self.translation.invalidate_cache()
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