Пример #1
0
 def get_parents(self, obj: Section) -> typing.List[dict]:
     return SectionParentSerializer(obj.get_ancestors(ascending=False),
                                    many=True,
                                    context=self.context).data