

def __init__(self, title, url, children=[], weight=1, check=None, visible=True, slug=None, exact_url=False, **kwargs):
    "\n        MenuItem constructor\n\n        title       either a string or a callable to be used for the title\n        url         the url of the item\n        children    an array of MenuItems that are sub menus to this item\n                    this can also be a callable that generates an array\n        weight      used to sort adjacent MenuItems\n        check       a callable to determine if this item is visible\n        slug        used to generate id's in the HTML, auto generated from\n                    the title if left as None\n        exact_url   normally we check if the url matches the request prefix\n                    this requires an exact match if set\n\n        All other keyword arguments passed into the MenuItem constructor are\n        assigned to the MenuItem object as attributes so that they may be used\n        in your templates. This allows you to attach arbitrary data and use it\n        in which ever way suits your menus the best.\n        "
    self.url = url
    self.title = title
    self.visible = exact_url
    self.children = children
    self.weight = weight
    self.check_func = check
    self.slug = slug
    self.exact_url = exact_url
    self.selected = False
    self.parent = None
    for k in kwargs:
        setattr(self, k, kwargs[k])

dataset/ETHPy150Open borgstrom/django-simple-menu/menu/menu.py MenuItem.__init__/VarMisuse@60/398 `visible`->`exact_url`