From 100750e35bb85b86566d87692c301e841d758ece Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 26 Sep 2019 02:06:49 +0200 Subject: [PATCH] Workaround for a weird Unicode problem. --- chunks/templatetags/chunks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunks/templatetags/chunks.py b/chunks/templatetags/chunks.py index 8b306ec..111c34e 100644 --- a/chunks/templatetags/chunks.py +++ b/chunks/templatetags/chunks.py @@ -21,7 +21,7 @@ def chunk(key, cache_time=0): n = Chunk(key=key) n.save() return '' - return mark_safe(content) + return mark_safe(unicode(content)) @register.simple_tag -- 2.20.1