1. Benoît Bryon
  2. django-menus

Commits

Benoît Bryon  committed f84f181

Fixed bug in documentation sample code, in categories() menu processor

  • Participants
  • Parent commits b9c2539
  • Branches default

Comments (0)

Files changed (1)

File docs/index.txt

View file
  • Ignore whitespace
       root_menu_item = menus['categories']
       # create items and append it to root
       for category in Category.objects.all():
-          root_menu_item.append(category_to_menu_item(category, menu_name, counter))
+          root_menu_item.append(category_to_menu_item(category))
       # update menus
       menus['categories'] = root_menu_item
       # return updated menus