Minor improvements to navigationoverrides, including admin support and working naviga...
[philo.git] / templatetags / nodes.py
index 8a98630..338ac2d 100644 (file)
@@ -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