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

One place for imports

parent d9c6da43
......@@ -25,6 +25,7 @@ from trans.checks import CHECKS
from trans.models.unit import Unit
from trans.models.project import Project
from trans.models.changes import Change
from accounts.models import notify_new_comment, notify_new_suggestion
from trans.util import get_user_display
......@@ -52,8 +53,6 @@ class SuggestionManager(models.Manager):
'''
Creates new suggestion for this unit.
'''
from trans.models.changes import Change
from accounts.models import notify_new_suggestion
if not user.is_authenticated():
user = None
......@@ -157,8 +156,6 @@ class CommentManager(models.Manager):
'''
Adds comment to this unit.
'''
from trans.models.changes import Change
from accounts.models import notify_new_comment
new_comment = Comment.objects.create(
user=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