Django dynamic filtering with Ajax

Something like this returns nothing. I believe this is your third option or am I doing something wrong?

class ManageUserView(SuperUserRequired, ListView):
    model = User
    template_name = 'webapp/klant/beheerklant.html'

    #Query based upon contactName
    def get_queryset(self, query=None):
        if not query:
            return super().get_queryset()

        object_list = self.model.objects.filter(contactNaam__icontains=query).exclude(is_superuser=True)
        return object_list
    
    def post(self, request, *args, **kwargs):
        query = self.request.POST.get('query', '')
        self.get_queryset(self, query)
        return JsonResponse('OK', safe=False)