def get_queryset(self, request, *args, **kwargs):
        try:
            draft = resources.review_request_draft.get_object(
                request, *args, **kwargs)
        except __HOLE__:
            raise self.model.DoesNotExist

        return self.model.objects.filter(review_request_draft=draft)
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/draft_diff.py/DraftDiffResource.get_queryset