git.ithinksw.org
/
philo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06dc22d
)
Corrected shipherd handling of the navigation_items related_name following commit...
author
Stephen Burrows
<stephen.r.burrows@gmail.com>
Fri, 4 Feb 2011 00:07:52 +0000
(19:07 -0500)
committer
Stephen Burrows
<stephen.r.burrows@gmail.com>
Fri, 4 Feb 2011 00:07:52 +0000
(19:07 -0500)
contrib/shipherd/models.py
patch
|
blob
|
history
diff --git
a/contrib/shipherd/models.py
b/contrib/shipherd/models.py
index
bddaef3
..
2eacc89
100644
(file)
--- 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']: