def get_queryset(self, *args, **kwargs):
    if ('pk' in dict(self.kwargs)):
        return UserExpertise.objects.filter(expertise=self.kwargs['pk'], expert=self.request.user)
    else:
        return UserExpertise.objects.filter(expert=self.request.user)
def get_queryset(self, *args, **kwargs):
    if ('pk' in dict(self.kwargs)):
        return UserExpertise.objects.filter(expertise=self.kwargs['pk'], expert=self.request.user)
    else:
        return UserExpertise.objects.filter(expert=self.request.user)