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

Store change object about completing translation (issue #137)

parent 3dbe4303
......@@ -2164,6 +2164,11 @@ class Unit(models.Model):
# Force commiting on completing translation
if old_translated < self.translation.translated and self.translation.translated == self.translation.total:
self.translation.commit_pending()
Change.objects.create(
translation = unit.translation,
action = Change.ACTION_COMPLETE
user = request.user
)
# Propagate to other projects
if propagate:
......
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