def url_map(self, for_user=None, **kwargs):
    '\n        Returns a dictionary of urls mapped to Displayable subclass\n        instances, including a fake homepage instance if none exists.\n        Used in ``mezzanine.core.sitemaps``.\n        '
    home = self.model(title=_('Home'))
    setattr(home, 'get_absolute_url', home_slug)
    items = {home.get_absolute_url(): home}
    for model in get_models():
        if issubclass(model, self.model):
            for item in model.objects.published(for_user=for_user).filter(**kwargs).exclude(slug__startswith='http://').exclude(slug__startswith='https://'):
                items[item.get_absolute_url()] = item
    return items
Returns a dictionary of urls mapped to Displayable subclass
instances, including a fake homepage instance if none exists.
Used in ``mezzanine.core.sitemaps``.
def url_map(self, for_user=None, **kwargs):
    '\n        Returns a dictionary of urls mapped to Displayable subclass\n        instances, including a fake homepage instance if none exists.\n        Used in ``mezzanine.core.sitemaps``.\n        '
    home = self.model(title=_('Home'))
    setattr(home, 'get_absolute_url', home_slug)
    items = {home.get_absolute_url(): home}
    for model in get_models():
        if issubclass(model, self.model):
            for item in model.objects.published(for_user=for_user).filter(**kwargs).exclude(slug__startswith='http://').exclude(slug__startswith='https://'):
                items[item.get_absolute_url()] = item
    return items