Permalink
Browse files

Docs: missed url param in CMSAttachMenu example

  • Loading branch information...
1 parent bb05139 commit 6eab5b458a64e42b024b81313da4151b4f75b3a4 @applecat applecat committed Aug 23, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 docs/extending_cms/app_integration.rst
@@ -282,7 +282,13 @@ We would now create a menu out of these categories::
def get_nodes(self, request):
nodes = []
for category in Category.objects.all().order_by("tree_id", "lft"):
- nodes.append(NavigationNode(category.name, category.pk, category.parent_id))
+ nodes = NavigationNode(
+ category.name,
+ category.get_absolute_url(),
+ category.pk,
+ category.parent_id
+ )
+ nodes.append(node)
return nodes
menu_pool.register_menu(CategoryMenu)

0 comments on commit 6eab5b4

Please sign in to comment.