Propagate only to same language

This commit is contained in:
Michal Čihař 2012-02-28 14:27:11 +01:00
parent a04cf580a6
commit e36ca7363c

View File

@ -314,6 +314,7 @@ class Unit(models.Model):
allunits = Unit.objects.filter( allunits = Unit.objects.filter(
checksum = self.checksum, checksum = self.checksum,
translation__subproject__project = self.translation.subproject.project, translation__subproject__project = self.translation.subproject.project,
translation__language = self.translation.language
).exclude(id = self.id) ).exclude(id = self.id)
for unit in allunits: for unit in allunits:
unit.target = self.target unit.target = self.target