def get_absolute_url(self):
        from django.core.urlresolvers import NoReverseMatch

        if self.alternate_url:
            return self.alternate_url
        try:
            prefix = reverse('categories_tree_list')
        except NoReverseMatch:
            prefix = '/'
        ancestors = list(self.get_ancestors()) + [self, ]
        return prefix + '/'.join([force_text(i.slug) for i in ancestors]) + '/'
Return a path
dataset/ETHPy150Open callowayproject/django-categories/categories/models.py/Category.get_absolute_url