def get_categories(self):
        return self.category.get_descendants_and_self()
Return a list of the current category and its ancestors
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/catalogue/views.py/ProductCategoryView.get_categories