From f82a5091ed1b88af2fc6354cd90689de6911474e Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 20 Dec 2011 02:31:18 -0400 Subject: [PATCH] Update navigation tag to enable ACLs to work with list's items --- apps/navigation/templatetags/navigation_tags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/navigation/templatetags/navigation_tags.py b/apps/navigation/templatetags/navigation_tags.py index 815af1ea0d..86b625ab0c 100644 --- a/apps/navigation/templatetags/navigation_tags.py +++ b/apps/navigation/templatetags/navigation_tags.py @@ -249,7 +249,9 @@ def get_object_navigation_links(parser, token): @register.inclusion_tag('generic_navigation.html', takes_context=True) def object_navigation_template(context): + # Pass the list object to the navigation template as the navigation object return { + 'navigation_object': context['object'] if 'object' in context else None, 'request': context['request'], 'horizontal': True, 'object_navigation_links': _get_object_navigation_links(context)