From 3ce16dd425565e6fc31c49c98bf8d88e09183748 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Thu, 3 Feb 2011 19:07:52 -0500 Subject: [PATCH] Corrected shipherd handling of the navigation_items related_name following commit 6ac457d4ac226a474e988dfb898682ae04a86eb0. --- contrib/shipherd/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/shipherd/models.py b/contrib/shipherd/models.py index bddaef3..2eacc89 100644 --- a/contrib/shipherd/models.py +++ b/contrib/shipherd/models.py @@ -155,8 +155,7 @@ class NavigationManager(models.Manager): # 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']: -- 2.20.1