|
|
|
@ -77,6 +77,10 @@ class AdminPodcastViewSet(ModelViewSet): |
|
|
|
if collection_id and collection_id != "all": |
|
|
|
queryset = queryset.filter(collections__id=collection_id) |
|
|
|
|
|
|
|
unattached = self.request.query_params.get("unattached") |
|
|
|
if unattached == "true": |
|
|
|
queryset = queryset.filter(playlist_appearances__isnull=True) |
|
|
|
|
|
|
|
return queryset.distinct().order_by("-created_at") |
|
|
|
|
|
|
|
|
|
|
|
|