Commits

David Jean Louis  committed eda1989

Fixed bookmarks functionality

  • Participants
  • Parent commits bad3200

Comments (0)

Files changed (1)

File admin_tools/menu/templatetags/admin_tools_menu_tags.py

 
 from django import template
 from admin_tools.utils import get_media_url
-from admin_tools.menu.models import Bookmark, BookmarkMenuItem
+from admin_tools.menu import items
+from admin_tools.menu.models import Bookmark
 from admin_tools.menu.utils import get_admin_menu
 
 register = template.Library()
     menu.init_with_context(context)
     has_bookmark_item = False
     bookmark = None
-    if len([c for c in menu.children if isinstance(c, BookmarkMenuItem)]) > 0:
+    if len([c for c in menu.children if isinstance(c, items.Bookmarks)]) > 0:
         has_bookmark_item = True
         url = context['request'].get_full_path()
         try: