Commit 5f310faa authored by Michal Čihař's avatar Michal Čihař

Do not import suggestions same as current translation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent c737f527
......@@ -1149,7 +1149,8 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
ret = True
# Add suggestion
Suggestion.objects.add(dbunit, unit.get_target(), request)
if dbunit.target != unit.get_target():
Suggestion.objects.add(dbunit, unit.get_target(), request)
# Update suggestion count
if ret:
......
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