Commit 4fbd641f authored by Michal Čihař's avatar Michal Čihař

Need to work with units here, forgotten attribute

parent 269920bd
......@@ -596,7 +596,7 @@ class Translation(models.Model):
self.total = self.unit_set.count()
self.fuzzy = self.unit_set.filter(fuzzy=True).count()
self.translated = self.unit_set.filter(translated=True).count()
self.failing_checks = self.filter_checks(
self.failing_checks = self.unit_set.filter_checks(
'allchecks', translation
).count()
self.save()
......
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