Merge branch 'entity_raw_id_fields'
authorStephen Burrows <stephen.r.burrows@gmail.com>
Fri, 21 Jan 2011 22:15:54 +0000 (17:15 -0500)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Fri, 21 Jan 2011 22:15:54 +0000 (17:15 -0500)
contrib/shipherd/models.py

index 5146987..dee16e9 100644 (file)
@@ -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']: