Commit 68ed6b5c authored by Michal Čihař's avatar Michal Čihař

Use direct access to manager instead of creating new one

parent 2f40e409
......@@ -227,7 +227,7 @@ class CommentManager(models.Manager):
'''
from weblate.accounts.models import notify_new_comment
new_comment = Comment.objects.create(
new_comment = self.create(
user=user,
contentsum=unit.contentsum,
project=unit.translation.subproject.project,
......
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