mirror of
https://github.com/django/django.git
synced 2025-01-10 18:36:05 +00:00
Removed unneeded iter() call in IfNode.nodelist.
This commit is contained in:
parent
abaf0ab4a4
commit
f152678d36
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user