def METHOD_NAME(self):
    """Redefine the queryset to use based on the current action."""
    queryset = super().METHOD_NAME()
    queryset = queryset.filter(
        video__id=self.get_related_video_id(),
    )
    if self.action in ["list"] and self.request.resource:
        queryset = queryset.filter(
            video__playlist__id=self.request.resource.id,
        )
    return queryset