fnp
/
prawokultury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
497f182
)
mark_safe chunks.
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 25 Sep 2019 23:59:54 +0000
(
01:59
+0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 25 Sep 2019 23:59:54 +0000
(
01:59
+0200)
chunks/templatetags/chunks.py
patch
|
blob
|
history
diff --git
a/chunks/templatetags/chunks.py
b/chunks/templatetags/chunks.py
index
fd24b02
..
8b306ec
100644
(file)
--- 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