def METHOD_NAME(self):
    items = {}
    for cat in self.categories.select_related('category', 'parent'):
        if cat.category:
            items["category"] = cat.category
        elif cat.parent:
            items["sub_category"] = cat.parent
    return items