Fix a small thread safety issue in ExtendsNode. No tests, but Malcolm said that's ok, honest.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4c8f2dca21
commit
f85b96121a
|
@ -88,8 +88,9 @@ class ExtendsNode(Node):
|
||||||
|
|
||||||
def get_parent(self, context):
|
def get_parent(self, context):
|
||||||
if self.parent_name_expr:
|
if self.parent_name_expr:
|
||||||
self.parent_name = self.parent_name_expr.resolve(context)
|
parent = self.parent_name_expr.resolve(context)
|
||||||
parent = self.parent_name
|
else:
|
||||||
|
parent = self.parent_name
|
||||||
if not parent:
|
if not parent:
|
||||||
error_msg = "Invalid template name in 'extends' tag: %r." % parent
|
error_msg = "Invalid template name in 'extends' tag: %r." % parent
|
||||||
if self.parent_name_expr:
|
if self.parent_name_expr:
|
||||||
|
|
Loading…
Reference in New Issue