def treewalk(self, save=True):
        slug = unicode(self.name).replace(" ", "-")
        slug = defaultfilters.slugify(unidecode(slug))
        treepath = slug + "/"

        self.treepath = treepath

        if save:
            self.save()
        return self
Walks up the tree to construct Category
dataset/ETHPy150Open treeio/treeio/treeio/knowledge/models.py/KnowledgeCategory.treewalk