summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/templatetags/cache.py2
1 files changed, 1 insertions, 1 deletions
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:]])