Removed unneeded iter() call in IfNode.nodelist.

This commit is contained in:
Sergey Fedoseev 2017-11-12 05:36:21 +05:00 committed by Tim Graham
parent abaf0ab4a4
commit f152678d36
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class IfNode(Node):
@property
def nodelist(self):
return NodeList(iter(self))
return NodeList(self)
def render(self, context):
for condition, nodelist in self.conditions_nodelists: