Commit d1347528 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents fedafcf8 943d6022
......@@ -1056,12 +1056,11 @@ class Unit(models.Model, LoggerMixin):
secondary_langs = user.profile.secondary_languages.exclude(
id=self.translation.language.id
)
project = self.translation.subproject.project
return get_distinct_translations(
Unit.objects.filter(
checksum=self.checksum,
translated=True,
translation__subproject__project=project,
translation__subproject=self.translation.subproject,
translation__language__in=secondary_langs,
)
)
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