@classmethod
    def add_item(c, name, item):
        if isinstance(item, MenuItem):
            if name not in c.items:
                c.items[name] = []
            c.items[name].append(item)
            c.sorted[name] = False
add_item adds MenuItems to the menu identified by 'name'
dataset/ETHPy150Open borgstrom/django-simple-menu/menu/menu.py/Menu.add_item