#9756: Recent changes to for tag (adding empty clause) leave context stack
imbalanced when iterable is empty
--------------------------------------+-------------------------------------
Reporter: seanl | Owner: nobody
Status: new | Milestone: 1.1
Component: Template system | Version: 1.0
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by bpeschier):
Ah, explains why an nested forloop with an empty iterable causes the
{{{.first}}}-attribute of his parent loop to be true incorrectly. Just
bumped into this one, nice to see it fixed! :-)
--
Ticket URL: <http://code.djangoproject.com/ticket/9756#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 [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
-~----------~----~----~----~------~----~------~--~---