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