diff options
Diffstat (limited to 'django/template/__init__.py')
| -rw-r--r-- | django/template/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py index a1d1d402d0..e898fc7636 100644 --- a/django/template/__init__.py +++ b/django/template/__init__.py @@ -171,7 +171,7 @@ class Token(object): self.contents[:20].replace('\n', '')) def split_contents(self): - return smart_split(self.contents) + return list(smart_split(self.contents)) class Lexer(object): def __init__(self, template_string, origin): @@ -758,7 +758,7 @@ class DebugVariableNode(VariableNode): def generic_tag_compiler(params, defaults, name, node_class, parser, token): "Returns a template.Node subclass." - bits = token.contents.split()[1:] + bits = token.split_contents()[1:] bmax = len(params) def_len = defaults and len(defaults) or 0 bmin = bmax - def_len |
