Commit 462fe932 authored by Michal Čihař's avatar Michal Čihař

Use attributes rather than calling helper method

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 05538530
......@@ -1022,7 +1022,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
]
# Untranslated strings
nottranslated = self.unit_set.count_type('untranslated', self)
nottranslated = self.total - self.translated
if nottranslated > 0:
result.append((
'untranslated',
......@@ -1032,12 +1032,11 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
))
# Fuzzy strings
fuzzy = self.unit_set.count_type('fuzzy', self)
if fuzzy > 0:
if self.fuzzy > 0:
result.append((
'fuzzy',
_('Fuzzy strings'),
fuzzy,
self.fuzzy,
'danger',
))
......
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