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

Properly update suggestion counts on suggestions import

parent 5060d450
......@@ -1060,9 +1060,12 @@ class Translation(models.Model):
user=request.user
)
# Invalidate cache if we've added something
# Increase suggestion counter
self.have_suggestion += 1
# Save updated suggestion count
if ret:
self.invalidate_cache('suggestions')
self.save()
return 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