| Issue 65: | Allow select_related in model methods | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The attached patch allows to pass an extra keyword argument "select_related" to the following methods: - get_ancestors() - get_children() - get_descendants() - get_next_sibling() - get_previous_sibling() - get_siblings() and in the util function 'drilldown_tree_for_node()'. It can reduce the number of queries in many usecases (eg: breadcrumbs, menus, etc...).
Sep 3, 2010
(No comment was entered for this change.)
Status:
WontFix
|
Can't you just do something like: n.get_descendants().select_related() Unless I'm missing something, I'm not inclined to add this patch.