изменил метод получения трека

This commit is contained in:
Mike0001-droid 2024-06-07 16:12:14 +05:00
parent e5683e1761
commit 6d4c3f8dd2
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class SongViewSet(ViewSet):
@action(detail=False, methods=['post'], schema=SongSchema())
def create_song(self, request):
song = get_object_or_404(Song, azura_id = request.data['azura_id'])
song = Song.objects.get(azura_id = request.data['azura_id'])
if song:
data = {
"song": song.id,