From 0cdd65aa2835ca5bbaecc33c79aa2dcf759e2476 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 4 Feb 2008 04:57:56 +0000 Subject: [PATCH] Fixed a simple TODO item in one error path of the "extends" tag. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7085 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/template/loader_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index 7597c04b73f..716e4758070 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -56,7 +56,7 @@ class ExtendsNode(Node): if not parent: error_msg = "Invalid template name in 'extends' tag: %r." % parent if self.parent_name_expr: - error_msg += " Got this from the %r variable." % self.parent_name_expr #TODO nice repr. + error_msg += " Got this from the '%s' variable." % self.parent_name_expr.token raise TemplateSyntaxError, error_msg if hasattr(parent, 'render'): return parent # parent is a Template object