Kaydet (Commit) df0aebc8 authored tarafından Tim Graham's avatar Tim Graham

Simplified IfNode.nodelist

üst cf59392e
......@@ -292,7 +292,7 @@ class IfNode(Node):
@property
def nodelist(self):
return NodeList(node for _, nodelist in self.conditions_nodelists for node in nodelist)
return NodeList(iter(self))
def render(self, context):
for condition, nodelist in self.conditions_nodelists:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment