From 5080311998a8ecc5b3f9fa162c19e55b70aa9f85 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Mon, 25 Mar 2013 09:10:32 +0100 Subject: Fixed #20130 -- Regression in {% cache %} template tag. --- django/templatetags/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/templatetags/cache.py b/django/templatetags/cache.py index 8c061ca4c6..215f1179dc 100644 --- a/django/templatetags/cache.py +++ b/django/templatetags/cache.py @@ -59,5 +59,5 @@ def do_cache(parser, token): raise TemplateSyntaxError("'%r' tag requires at least 2 arguments." % tokens[0]) return CacheNode(nodelist, parser.compile_filter(tokens[1]), - parser.compile_filter(tokens[2]), + tokens[2], # fragment_name can't be a variable. [parser.compile_filter(token) for token in tokens[3:]]) -- cgit v1.3