From db893b5ded037b7948e22eea8c4924015d0312be Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 26 Sep 2019 01:59:54 +0200 Subject: [PATCH 1/1] mark_safe chunks. --- chunks/templatetags/chunks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chunks/templatetags/chunks.py b/chunks/templatetags/chunks.py index fd24b02..8b306ec 100644 --- a/chunks/templatetags/chunks.py +++ b/chunks/templatetags/chunks.py @@ -1,6 +1,7 @@ from django import template from django.db import models from django.core.cache import cache +from django.utils.safestring import mark_safe from ..models import Chunk, Attachment @@ -20,7 +21,7 @@ def chunk(key, cache_time=0): n = Chunk(key=key) n.save() return '' - return content + return mark_safe(content) @register.simple_tag -- 2.20.1