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

Simplify condition

parent 29239f72
...@@ -876,7 +876,7 @@ class Unit(models.Model): ...@@ -876,7 +876,7 @@ class Unit(models.Model):
cleanup_checks = True cleanup_checks = True
was_change = False was_change = False
if (same_state or is_new) and (self.fuzzy or not self.translated): if (same_state or is_new) and not self.translated:
# Check whether there is any message with same source # Check whether there is any message with same source
project = self.translation.subproject.project project = self.translation.subproject.project
same_source = Unit.objects.filter( 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