#9154: Huge improvements in templates rendering ---------------------------------------------+------------------------------ Reporter: msaelices | Owner: Status: new | Milestone: Component: Template system | Version: SVN Resolution: | Keywords: templates, cache Stage: Design decision needed | Has_patch: 1 Needs_docs: 1 | Needs_tests: 1 Needs_better_patch: 0 | ---------------------------------------------+------------------------------ Changes (by Kronuz):
* cc: german...@gmail.com (added) * keywords: => templates, cache Comment: There was a bug in the way {{ block.super }} extended certain parents not defining the block in question. For parents which did not define a given BlockNode name defined in the child, the KeyError exception was raised and the block was added to the parent's ExtendsNode nodelist. The parent's complete list of BlockNode was then not fully restored by the last part of the patched render() function, leaving the added BlockNode in the parent's ExtendsNode nodelist. The patch I'm attaching cleans the parent's ExtendsNode's nodelist to the state it was before, effectively restoring the full parent's nodelist. -- Ticket URL: <http://code.djangoproject.com/ticket/9154#comment:23> 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 -~----------~----~----~----~------~----~------~--~---