Commit 6f5d54da authored by Luca De Petrillo's avatar Luca De Petrillo

Fixed commit on completion bug

parent 805ba23c
...@@ -2176,7 +2176,7 @@ class Unit(models.Model): ...@@ -2176,7 +2176,7 @@ class Unit(models.Model):
if old_translated < self.translation.translated and self.translation.translated == self.translation.total: if old_translated < self.translation.translated and self.translation.translated == self.translation.total:
self.translation.commit_pending() self.translation.commit_pending()
Change.objects.create( Change.objects.create(
translation = unit.translation, translation = self.translation,
action = Change.ACTION_COMPLETE, action = Change.ACTION_COMPLETE,
user = request.user user = request.user
) )
......
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