From 82c542156fa674e9630f78363d4bb745594d5d8c Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Fri, 21 Jan 2011 00:49:47 -0500 Subject: [PATCH] Minor correction to NavigationManager caching. --- contrib/shipherd/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/shipherd/models.py b/contrib/shipherd/models.py index 5146987..dee16e9 100644 --- a/contrib/shipherd/models.py +++ b/contrib/shipherd/models.py @@ -155,7 +155,7 @@ class NavigationManager(models.Manager): # A distinct query is not strictly necessary. TODO: benchmark the efficiency # with/without distinct. - targets = list(Node.objects.filter(navigation_items__in=cache['items']).distinct()) + targets = list(Node.objects.filter(navigation_items__in=items).distinct()) for cache in caches: for item in cache['items']: -- 2.20.1