mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().
This commit is contained in:
committed by
Tim Graham
parent
a2ec1e6b2d
commit
23bf4ad87f
@@ -225,8 +225,7 @@ class IfChangedNode(Node):
|
||||
def render(self, context):
|
||||
# Init state storage
|
||||
state_frame = self._get_context_stack_frame(context)
|
||||
if self not in state_frame:
|
||||
state_frame[self] = None
|
||||
state_frame.setdefault(self)
|
||||
|
||||
nodelist_true_output = None
|
||||
if self._varlist:
|
||||
|
||||
Reference in New Issue
Block a user