Fixed #10644: removed an undocumented, unused, and (as far as I can tell) unnecessary "feature" of the ifchanged tag. Thanks, akaihola.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2c3c1f3ec4
commit
4f7950ac05
|
@ -186,10 +186,7 @@ class IfChangedNode(Node):
|
|||
if compare_to != self._last_seen:
|
||||
firstloop = (self._last_seen == None)
|
||||
self._last_seen = compare_to
|
||||
context.push()
|
||||
context['ifchanged'] = {'firstloop': firstloop}
|
||||
content = self.nodelist_true.render(context)
|
||||
context.pop()
|
||||
return content
|
||||
elif self.nodelist_false:
|
||||
return self.nodelist_false.render(context)
|
||||
|
|
Loading…
Reference in New Issue