Author: jacob
Date: 2009-04-07 16:55:39 -0500 (Tue, 07 Apr 2009)
New Revision: 10438

Modified:
   django/trunk/django/template/defaulttags.py
Log:
Fixed #10644: removed an undocumented, unused, and (as far as I can tell) 
unnecessary "feature" of the ifchanged tag. Thanks, akaihola.

Modified: django/trunk/django/template/defaulttags.py
===================================================================
--- django/trunk/django/template/defaulttags.py 2009-04-07 21:33:43 UTC (rev 
10437)
+++ django/trunk/django/template/defaulttags.py 2009-04-07 21:55:39 UTC (rev 
10438)
@@ -186,10 +186,7 @@
         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)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to