#7501: template rendering doesn't reset cycle tag ---------------------------------------------+------------------------------ Reporter: mitsuhiko | Owner: nobody Status: new | Milestone: post-1.0 Component: Template system | Version: SVN Resolution: | Keywords: Stage: Design decision needed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------+------------------------------ Comment (by SmileyChris):
In #5908 Malcolm talks about the importance of keeping the state of the internal counter. Currently, the `{% for %}` tag (and potentially others) sets up a local context for each iteration, so if we put the counter straight on the context, it'll be lost the next iteration. I think `Context` needs a way to set a "global" context variable (if you understand the internals, probably just stuffing it at the highest level context). -- Ticket URL: <http://code.djangoproject.com/ticket/7501#comment:3> 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---