Django

Code

Changeset 7085

Show
Ignore:
Timestamp:
02/03/08 22:57:56 (10 months ago)
Author:
mtredinnick
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/loader_tags.py

    r7084 r7085  
    5757            error_msg = "Invalid template name in 'extends' tag: %r." % parent 
    5858            if self.parent_name_expr: 
    59                 error_msg += " Got this from the %r variable." % self.parent_name_expr #TODO nice repr. 
     59                error_msg += " Got this from the '%s' variable." % self.parent_name_expr.token 
    6060            raise TemplateSyntaxError, error_msg 
    6161        if hasattr(parent, 'render'):