mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-28 17:49:04 +01:00
fixed get_email management command
This commit is contained in:
parent
652f847c3b
commit
c4fa11719f
@ -54,6 +54,10 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
||||
import os
|
||||
|
||||
context = Context(email_context)
|
||||
locale = 'en';
|
||||
if hasattr(context['queue'], 'locale'):
|
||||
locale = getattr(context['queue'], 'locale', 'en')
|
||||
else:
|
||||
locale = context['queue'].get('locale', 'en')
|
||||
|
||||
t = None
|
||||
|
Loading…
Reference in New Issue
Block a user