Skip to content

Commit

Permalink
fixes #2 by switching the attribute "name" to "name_original"
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizkas0 committed Mar 9, 2021
1 parent b909c12 commit 0164351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wger/exercises/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def set_author(self, request):

subject = _('New user submitted exercise')
message = _('The user {0} submitted a new exercise "{1}".').format(
request.user.username, self.name)
request.user.username, self.name_original)
mail.mail_admins(str(subject),
str(message),
fail_silently=True)
Expand Down

0 comments on commit 0164351

Please sign in to comment.