Tweaked LazyNode to handle trailing slashes. Corrected missing import in models/nodes.py.
[philo.git] / contrib / shipherd / models.py
index bddaef3..2eacc89 100644 (file)
@@ -155,8 +155,7 @@ class NavigationManager(models.Manager):
                
                # A distinct query is not strictly necessary. TODO: benchmark the efficiency
                # with/without distinct.
                
                # A distinct query is not strictly necessary. TODO: benchmark the efficiency
                # with/without distinct.
-               #change to navigation_navigation_items
-               targets = list(Node.objects.filter(navigation_items__in=items).distinct())
+               targets = list(Node.objects.filter(shipherd_navigationitem_related__in=items).distinct())
                
                for cache in caches:
                        for item in cache['items']:
                
                for cache in caches:
                        for item in cache['items']: