def METHOD_NAME(self):
    task_type = self.request.query_params.get('type')
    if task_type == TYPE_COLLECTION:
        qs = self.get_collection_queryset()
    elif task_type == TYPE_REPOSITORY:
        qs = self.get_repsository_queryset()
    else:
        qs = self.get_collection_queryset()
        qs = qs.union(self.get_repsository_queryset(), all=True)
    return qs.order_by('-started_at')