Commit 5060d450 authored by Michal Čihař's avatar Michal Čihař

Need to filter by type here, not by check

parent 54baa5b9
......@@ -600,7 +600,7 @@ class Translation(models.Model):
self.failing_checks = self.unit_set.filter_checks(
'allchecks', self
).count()
self.have_suggestion = self.unit_set.filter_checks(
self.have_suggestion = self.unit_set.filter_type(
'suggestions', self
).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