fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The prolong command.
[wolnelektury.git]
/
src
/
chunks
/
templatetags
/
chunks.py
diff --git
a/src/chunks/templatetags/chunks.py
b/src/chunks/templatetags/chunks.py
index
968d284
..
1d73626
100644
(file)
--- a/
src/chunks/templatetags/chunks.py
+++ b/
src/chunks/templatetags/chunks.py
@@
-1,6
+1,7
@@
# -*- coding: utf-8 -*-
from django import template
from django.core.cache import cache
# -*- coding: utf-8 -*-
from django import template
from django.core.cache import cache
+from django.utils.safestring import mark_safe
from ..models import Chunk, Attachment
from ..models import Chunk, Attachment
@@
-20,7
+21,7
@@
def chunk(key, cache_time=0):
n = Chunk(key=key)
n.save()
return ''
n = Chunk(key=key)
n.save()
return ''
- return
content
+ return
mark_safe(content)
@register.simple_tag
@register.simple_tag