1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #23441, #24555 -- Improved the behavior of InclusionNode.

This change:

* Makes the InclusionNode cache-safe by removing render-time side effects
  to its nodelist.
* Ensures the render_context stack is properly scoped and reset by updating
  the render call to use Template.render rather than Nodelist.render.
This commit is contained in:
Preston Timmons
2015-03-31 21:57:26 -05:00
committed by Tim Graham
parent 4ea1909d3c
commit 0808ccce38
6 changed files with 46 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
{% extends 'inclusion_base.html' %}
{% block content %}one{% endblock %}