Fix error with emails and user.lang

remotes/origin/enhancement/email-actions
David Barragán Merino 2015-05-21 14:39:03 +02:00
parent 316220736d
commit cc4ca95864
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ def send_sync_notifications(notification_id):
for user in notification.notify_users.distinct():
context["user"] = user
context["lang"] = user.lang
context["lang"] = user.lang or settings.LANGUAGE_CODE
email.send(user.email, context)
notification.delete()