def get_queryset(self):
        user = get_object_or_404(get_user_model(), pk=self.kwargs['user_id'])

        # Check the provided key to the user's private hash
        if self.kwargs['key'] != user.private_hash:
            raise Http404
        return Subscription.objects.filter(user=user)
Get the subscription for the user even if they're logged out
dataset/ETHPy150Open ofa/connect/open_connect/notifications/views.py/LoggedOutSubscriptionView.get_queryset