forked from extern/django-helpdesk
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