From: Stephen Burrows Date: Fri, 21 Jan 2011 22:15:54 +0000 (-0500) Subject: Merge branch 'entity_raw_id_fields' X-Git-Tag: philo-0.9~22^2~5 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/2a1082fb32ede39a2bd39a3de243adc882a72b83?hp=dff8591e4ad14b7f1026adde11b4a43a36b364a2 Merge branch 'entity_raw_id_fields' --- 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']: