#5908: Cycle tag should reset after it steps out of scope(?) ----------------------------------------------------------+----------------- Reporter: Simon Litchfield <si...@quo.com.au> | Owner: nobody Status: new | Milestone: Component: Template system | Version: SVN Resolution: | Keywords: cycle templatetag tag counter for loop reset Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ----------------------------------------------------------+----------------- Comment (by akaihola):
The above patch adds a `{% resetcycle %}` tag which does not pollute the context. It should be able to reset the last unnamed and multiple named `{% cycle %}` tags. The patch also lives in a [http://github.com/akaihola/django/tree/resetcycle GitHub branch]. -- Ticket URL: <http://code.djangoproject.com/ticket/5908#comment:12> 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 -~----------~----~----~----~------~----~------~--~---