mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
fixed email locale detection
This commit is contained in:
parent
c8be4b03e2
commit
652f847c3b
@ -54,9 +54,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
||||
import os
|
||||
|
||||
context = Context(email_context)
|
||||
locale = getattr(context['queue'], 'locale', '')
|
||||
if not locale:
|
||||
locale = 'en'
|
||||
locale = context['queue'].get('locale', 'en')
|
||||
|
||||
t = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user