X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6c984d51262f63e88ae8ffb8e6611ea2dd406471..dfd4d9908772828d7a88904d6ca82c550bf4cce6:/apps/chunks/templatetags/chunks.py diff --git a/apps/chunks/templatetags/chunks.py b/apps/chunks/templatetags/chunks.py index 595482f41..083c48aa5 100644 --- a/apps/chunks/templatetags/chunks.py +++ b/apps/chunks/templatetags/chunks.py @@ -30,7 +30,7 @@ class ChunkNode(template.Node): 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 @@ -44,7 +44,7 @@ class ChunkNode(template.Node): n.save() return '' return content - + register.tag('chunk', do_get_chunk) @@ -58,6 +58,6 @@ def attachment(key, cache_time=0): return c.attachment.url except Attachment.DoesNotExist: return '' - + register.simple_tag(attachment)