From: Radek Czajka Date: Wed, 25 Sep 2019 23:59:54 +0000 (+0200) Subject: mark_safe chunks. X-Git-Url: https://git.mdrn.pl/prawokultury.git/commitdiff_plain/db893b5ded037b7948e22eea8c4924015d0312be mark_safe chunks. --- 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