Commit 86dcfb04 authored by Michal Čihař's avatar Michal Čihař

Foce all checks when unit goes untranslated

parent 30e8b839
......@@ -729,7 +729,7 @@ class Unit(models.Model):
# Update checks if content or fuzzy flag has changed
if not same_content or not same_state:
self.check()
self.check(same_state)
# Update fulltext index if content has changed or this is a new unit
if force_insert:
......@@ -865,7 +865,7 @@ class Unit(models.Model):
language=None,
)
def check(self):
def check(self, same_state=True):
'''
Updates checks for this unit.
'''
......@@ -874,7 +874,7 @@ class Unit(models.Model):
checks_to_run = CHECKS
cleanup_checks = True
if self.fuzzy or not self.translated:
if same_state and (self.fuzzy or not self.translated):
# Check whether there is any message with same source
project = self.translation.subproject.project
same_source = Unit.objects.filter(
......
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