

def get_category_moves(self, obj):
    move_meta_objects = MoveMeta.objects.filter(move_meta_category=obj)
    moves = []
    for meta in move_meta_objects:
        move_obj = Move.objects.get(pk=meta.move.id)
        data = MoveSummarySerializer(move_obj, context=self.context).data
        moves.append(data)
    return moves

dataset/ETHPy150Open phalt/pokeapi/pokemon_v2/serializers.py MoveMetaCategoryDetailSerializer.get_category_moves/original