Skip to content
Browse files

Fixed a simple TODO item in one error path of the "extends" tag.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b9e088a commit 0cdd65aa2835ca5bbaecc33c79aa2dcf759e2476 @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/
2 django/template/
@@ -56,7 +56,7 @@ def get_parent(self, context):
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

0 comments on commit 0cdd65a

Please sign in to comment.
Something went wrong with that request. Please try again.