1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Simplified IfNode.nodelist

This commit is contained in:
Tim Graham
2017-10-05 11:38:39 -04:00
parent cf59392e16
commit df0aebc893

View File

@@ -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: