diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2013-02-22 19:08:35 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-02-22 19:19:33 +0100 |
| commit | f13bfbec70e096f230e3dcda88a2cb215e7f8899 (patch) | |
| tree | dc3caf63f0a655527abac8c0d0e53208346b55cf /django | |
| parent | 5488437ab69cde9161d3de3ffb4ba5eff1111792 (diff) | |
Fixed #19882 -- Smarter tokenizing of {% for %} tag arguments.
Diffstat (limited to 'django')
| -rw-r--r-- | django/template/defaulttags.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 7b75615c20..c1ca947753 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -746,7 +746,7 @@ def do_for(parser, token): ========================== ================================================ """ - bits = token.contents.split() + bits = token.split_contents() if len(bits) < 4: raise TemplateSyntaxError("'for' statements should have at least four" " words: %s" % token.contents) |
