code: def init_with_context(self, context):
          
          from admin_tools.menu.models import Bookmark
  
          for b in Bookmark.objects.filter(user=context['request'].user):
              self.children.append(MenuItem(mark_safe(b.title), b.url))
  
          if not len(self.children):
              self.enabled = False
docs: Please refer to
          :meth:`~admin_tools.menu.items.MenuItem.init_with_context`
          documentation from :class:`~admin_tools.menu.items.MenuItem` class.