def get_parents(self, obj: Section) -> typing.List[dict]: return SectionParentSerializer(obj.get_ancestors(ascending=False), many=True, context=self.context).data
def get_parents(self, obj: Section) -> typing.List[dict]: return SectionParentSerializer(obj.get_ancestors(ascending=False), many=True, context=self.context).data