def get_object(self):
    try:
        return Expertise.objects.get(work_program__id=self.kwargs['pk'])
    except Expertise.DoesNotExist:
        raise NotFound()
def get_object(self):
    try:
        return Expertise.objects.get(work_program__id=self.kwargs['pk'])
    except Expertise.DoesNotExist:
        raise NotFound()