summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-04 04:57:56 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-04 04:57:56 +0000
commit0cdd65aa2835ca5bbaecc33c79aa2dcf759e2476 (patch)
treeb1a7c1aab7f05c55b9cfde7e14ed0b12e9ae3232
parentb9e088ae14141ccb6a5aaf7952868a6e15e1a6c7 (diff)
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
-rw-r--r--django/template/loader_tags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py
index 7597c04b73..716e475807 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