def __init__(self, key, cache_time=0):
self.key = key
self.cache_time = cache_time
-
+
def render(self, context):
try:
cache_key = 'chunk_' + self.key
n.save()
return ''
return content
-
+
register.tag('chunk', do_get_chunk)
return c.attachment.url
except Attachment.DoesNotExist:
return ''
-
+
register.simple_tag(attachment)