From f152678d36d45abef3ccd2588390e318d286d761 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sun, 12 Nov 2017 05:36:21 +0500 Subject: [PATCH] Removed unneeded iter() call in IfNode.nodelist. --- django/template/defaulttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 1101c20003..212aa8987a 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -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: