

@classmethod
def add_item(c, name, item):
    "\n        add_item adds MenuItems to the menu identified by 'name'\n        "
    if isinstance(item, MenuItem):
        if (name not in c.items):
            c.items[name] = []
        c.items[name].append(item)
        c.sorted[name] = False

dataset/ETHPy150Open borgstrom/django-simple-menu/menu/menu.py Menu.add_item/original