Commit 580584ce authored by Michal Čihař's avatar Michal Čihař

Properly pass translation object to parse error message

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 548bbcb4
......@@ -145,7 +145,7 @@ def notify_parse_error(subproject, translation, error):
'en',
'ADMINS',
'parse_error',
subproject,
translation if translation is not None else subproject,
{
'subproject': subproject,
'translation': translation,
......@@ -784,7 +784,7 @@ class Profile(models.Model):
'''
return self.notify_user(
'parse_error',
subproject,
translation if translation is not None else subproject,
{
'subproject': subproject,
'translation': translation,
......
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