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
Please refer to
dataset/ETHPy150Open django-admin-tools/django-admin-tools/admin_tools/menu/items.py/Bookmarks.init_with_context