Fix error with emails and user.lang
parent
316220736d
commit
cc4ca95864
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue