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

@@ -553,7 +553,7 @@ class Event(models.Model):
template_name = 'default.txt'
template_path = os.path.join('dav_events', 'event', template_name)
template = get_template(template_path)
template = get_template(template_path, using='PLAINTEXT')
return template.render(self.get_template_context({'show_internal_fields': show_internal_fields}))
def render_as_html(self):