mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-26 16:48:50 +01:00
conformed template from_string method to use engines['django']
This commit is contained in:
parent
0b7e0b7f04
commit
cbea3c54f0
@ -86,9 +86,9 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
||||
footer_file = os.path.join('helpdesk', locale, 'email_text_footer.txt')
|
||||
|
||||
# get_template_from_string was removed in Django 1.8 http://django.readthedocs.org/en/1.8.x/ref/templates/upgrading.html
|
||||
from django.template import Engine
|
||||
from django.template import engines
|
||||
|
||||
text_part = Engine().from_string(
|
||||
text_part = engines['django'].from_string(
|
||||
"%s{%% include '%s' %%}" % (t.plain_text, footer_file)
|
||||
).render(context)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user