

def get_queryset(self):
    'QuerySet handler.\n        Returns the set of LEOP spacecraft that are owned by the current user\n        making the requests.\n        '
    user_groundstations = segment_models.GroundStation.objects.filter(user=self.request.user).all()
    return self.model.objects.filter(groundstation__in=user_groundstations)

dataset/ETHPy150Open satnet-project/server/services/communications/views.py PassiveMessages.get_queryset/original