def get_long_slug(self):
        self.long_slug = self.kwargs.get('channel__long_slug', None)
        try:
            if not self.long_slug:
                self.long_slug = Channel.objects.get_homepage(
                    site=self.site).long_slug
        except __HOLE__:
            pass
        return self.long_slug
dataset/ETHPy150Open opps/opps/opps/views/generic/base.py/View.get_long_slug