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:
Jacob Kaplan-Moss 2009-04-07 21:55:39 +00:00
parent 2c3c1f3ec4
commit 4f7950ac05
1 changed files with 0 additions and 3 deletions

View File

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