

def get_menu_context(self):
    menus = []
    for menu in Menu.objects.filter(page__is_published=True):
        menus.append({
            'url': menu.page.get_absolute_url(),
            'title': menu.page.title,
        })
    return menus

dataset/ETHPy150Open gkmngrgn/radpress/radpress/models.py MenuManager.get_menu_context/original