Commit 491f0a8a authored by Michal Čihař's avatar Michal Čihař

Use authorship information for git commits (issue #347)

parent 32496a6f
......@@ -675,7 +675,7 @@ class Translation(models.Model, URLMixin, PercentMixin):
from trans.models.changes import Change
try:
change = Change.objects.content().filter(translation=self)[0]
return self.get_author_name(change.user, email)
return self.get_author_name(change.author, email)
except IndexError:
return None
......
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