#10644: undocumented context side-effect in {% ifchanged %}
-----------------------------+----------------------------------------------
 Reporter:  akaihola         |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Template system  |     Version:  1.0       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  1                |  
-----------------------------+----------------------------------------------
 The `{% ifchanged %}` template tag sets the `{{ ifchanged }}` variable in
 its local context, in a way similar to how `{% for %}` sets the `{{
 forloop }}` variable. This behavior is not documented. The value stored
 into the variable is a dictionary and doesn't seem to have any use
 elsewhere in Django. Maybe it's related to some removed functionality?

 These quick Google code searches didn't turn up any uses of the context
 variable in indexed open source projects either:
  * [http://google.com/codesearch?q=lang%3Apython+"context['ifchanged'%5d"
 context['ifchanged']]
  * [http://google.com/codesearch?q=lang%3Ahtml+"{{+ifchanged+}}"; {{
 ifchanged }}]
  * [http://google.com/codesearch?q=lang%3Ahtml+"{{ifchanged}}";
 {{ifchanged}}]

 The following patch stops `{% ifchanged %}` from touching the context and
 adds a test for this.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10644>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to