X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/4b2951f95d35674984774764f5991f89c5ca7815..9378da0590e3fcb8817d0c0309413bf59083ae8b:/contrib/shipherd/templatetags/shipherd.py diff --git a/contrib/shipherd/templatetags/shipherd.py b/contrib/shipherd/templatetags/shipherd.py index 57fb020..e3019e1 100644 --- a/contrib/shipherd/templatetags/shipherd.py +++ b/contrib/shipherd/templatetags/shipherd.py @@ -1,4 +1,4 @@ -from django import template +from django import template, VERSION as django_version from django.conf import settings from django.utils.safestring import mark_safe from philo.contrib.shipherd.models import Navigation @@ -167,6 +167,4 @@ def navigation_host(node, key): try: return Navigation.objects.filter(node__in=node.get_ancestors(include_self=True), key=key).order_by('-node__level')[0].node except: - if settings.TEMPLATE_DEBUG: - raise return node \ No newline at end of file