Skip to content

Commit

Permalink
Use authorship information for git commits (issue WeblateOrg#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Aug 29, 2013
1 parent 32496a6 commit 491f0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trans/models/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def get_last_author(self, email=True):
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

Expand Down

0 comments on commit 491f0a8

Please sign in to comment.