diff --git a/program/views.py b/program/views.py index 4e9cfe74dbd99a5fa5e6d039bc947f67b22084f5..9062ba7924dde9595dba878db11aab59a96229bb 100644 --- a/program/views.py +++ b/program/views.py @@ -1696,20 +1696,3 @@ class APIPlaylistViewSet(viewsets.ModelViewSet): playlist.delete() return Response(status=status.HTTP_204_NO_CONTENT) - - -@extend_schema_view( - list=extend_schema(summary="List the usage of playlists."), -) -class APIPlaylistUsageViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): - filterset_class = filters.PlaylistFileUsageFilter - serializer_class = PlaylistSerializer - - def get_queryset(self): - """The queryset is empty if the request is not authenticated. Otherwise, it contains all - the playlists.""" - - if not self.request.user.is_authenticated: - return Playlist.objects.none() - - return Playlist.objects.all()