рефакторинг
This commit is contained in:
parent
2b4b844383
commit
a3a061f9b5
|
|
@ -20,8 +20,8 @@ class SongViewSet(ViewSet):
|
|||
user_pk = request.user.pk
|
||||
song_obj = get_object_or_404(Song, azura_id=pk).pk
|
||||
queryset = FavoriteSong.objects.filter(user=user_pk, song=song_obj)
|
||||
serializer = FavoriteSongSerializer(queryset)
|
||||
return Response(serializer.data)
|
||||
#serializer = FavoriteSongSerializer(queryset)
|
||||
return Response(f'{queryset}')
|
||||
|
||||
|
||||
@action(detail=False, methods=['post'], schema=SongSchema())
|
||||
|
|
|
|||
Loading…
Reference in New Issue