summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPreston Timmons <preston.timmons@rewardstyle.com>2016-01-14 20:36:05 -0600
committerTim Graham <timograham@gmail.com>2016-01-26 06:23:27 -0500
commitcfda1fa3f8d95f0f4a369da9021dbd770e5fa44a (patch)
treedc84e9c48445c9e1ea17d91217686bcbec1ec76f /docs
parent477274acb46b2f07666e9f84dea2e65ea6b63ad3 (diff)
Fixed #25848 -- Set template origin on each node.
Prior to 55f12f8709, the template origin was available on each node via `self.token.source[0]`. This behavior was removed when debug handling was simplified, but 3rd-party debugging tools still depend on its presence. This updates the Parser to set origin on individual nodes. This enables the source template to be determined even when template extending or including is used.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.9.2.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.9.2.txt b/docs/releases/1.9.2.txt
index 1612a938a2..30527c146a 100644
--- a/docs/releases/1.9.2.txt
+++ b/docs/releases/1.9.2.txt
@@ -75,3 +75,10 @@ Bugfixes
* Fixed a crash when calling the ``migrate`` command in a test case with the
``available_apps`` attribute pointing to an application with migrations
disabled using the ``MIGRATION_MODULES`` setting (:ticket:`26135`).
+
+* Restored the ability for testing and debugging tools to determine the
+ template from which a node came from, even during template inheritance or
+ inclusion. Prior to Django 1.9, debugging tools could access the template
+ origin from the node via ``Node.token.source[0]``. This was an undocumented,
+ private API. The origin is now available directly on each node using the
+ ``Node.origin`` attribute (:ticket:`25848`).