X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/1dba84d30c4323acb722de2011ff7a0bff9148aa..ca2138fef978345b9076a2f855ed434a0bac65e1:/templatetags/nodes.py diff --git a/templatetags/nodes.py b/templatetags/nodes.py index 8a98630..338ac2d 100644 --- a/templatetags/nodes.py +++ b/templatetags/nodes.py @@ -25,7 +25,7 @@ class NodeURLNode(template.Node): if self.node: node = self.node.resolve(context) else: - node = context['node'] + node = context.get('node', None) if not node: return settings.TEMPLATE_STRING_IF_INVALID