Commit 53ba9587 authored by Michal Čihař's avatar Michal Čihař

Various coding fixes

parent 1e468d6d
......@@ -1080,6 +1080,7 @@ class Translation(models.Model, URLMixin):
'''
Merges contect of translate-toolkit store as a suggestions.
'''
from trans.models.unitdata import Suggestion
ret = False
for unit in store.all_units():
......
......@@ -173,8 +173,8 @@ class CommentManager(models.Manager):
unit.translation.invalidate_cache('targetcomments')
# Update unit stats
for unit in new_comment.get_related_units():
unit.update_has_comment()
for relunit in new_comment.get_related_units():
relunit.update_has_comment()
# Notify subscribed users
notify_new_comment(
......
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