def __init__(self, label, slug, filter_kwargs, model, object_permission=None, hide_links=False):
    self.label = label
    self.slug = slug
    self.filter_kwargs = filter_kwargs
    self.model = model
    self.object_permission = object_permission
    self.hide_links = hide_links
    self.__class__._registry[self.slug] = self
def __init__(self, label, slug, filter_kwargs, model, object_permission=None, hide_links=False):
    self.label = label
    self.slug = slug
    self.filter_kwargs = filter_kwargs
    self.model = model
    self.object_permission = object_permission
    self.hide_links = hide_links
    self.__class__._registry[self.slug] = self