#24555: Wrong content in inclusion templatetags with variable parent template
----------------------------+----------------------------------------------
Reporter: | Owner: nobody
benjaminrigaud |
Type: Bug | Status: new
Component: Template | Version: 1.8rc1
system |
Severity: Normal | Keywords: templatetags extends block cache
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+----------------------------------------------
If two custom inclusion tags specify their parent template through their
context and use the same block name, the rendered content of the second
tag is replaced by the content of the first one
Sandbox project: https://github.com/benjaminrigaud/extends-templatetags-
bug
Gist: https://gist.github.com/benjaminrigaud/e646f51e1a6dfe232c68
It works fine if we replace the custom tags with standard include tags.
It is a regression from 1.7 (tested with 1.7.7).
It may be related to the cache mechanism of the BlockContext:
https://github.com/django/django/blob/master/django/template/loader_tags.py#L115
--
Ticket URL: <https://code.djangoproject.com/ticket/24555>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/057.8ffc70f97ab54053c79dd71f20078451%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.