mirror of https://github.com/django/django.git
Added small comment to django.template.loader_tags, to clarify change from [3465]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b7a352d78f
commit
8e52384b6c
|
@ -51,7 +51,7 @@ class ExtendsNode(Node):
|
||||||
error_msg += " Got this from the %r variable." % self.parent_name_expr #TODO nice repr.
|
error_msg += " Got this from the %r variable." % self.parent_name_expr #TODO nice repr.
|
||||||
raise TemplateSyntaxError, error_msg
|
raise TemplateSyntaxError, error_msg
|
||||||
if hasattr(parent, 'render'):
|
if hasattr(parent, 'render'):
|
||||||
return parent
|
return parent # parent is a Template object
|
||||||
try:
|
try:
|
||||||
source, origin = find_template_source(parent, self.template_dirs)
|
source, origin = find_template_source(parent, self.template_dirs)
|
||||||
except TemplateDoesNotExist:
|
except TemplateDoesNotExist:
|
||||||
|
|
Loading…
Reference in New Issue