FIX: do not escape html entities in plain text templates.

This commit is contained in:
2018-11-27 10:11:18 +01:00
parent cec64de400
commit 7f54939b90
3 changed files with 17 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class AbstractMail(object):
def _get_template(self):
if not self._template_name:
raise ImproperlyConfigured('%s._template_name ist not set.', self.__class__.__name__)
return get_template(self._template_name)
return get_template(self._template_name, using='PLAINTEXT')
def _get_context_data(self, extra_context=None):
app_config = apps.get_containing_app_config(__package__)