исправил ошибку

This commit is contained in:
Mike0001-droid 2024-06-11 10:53:50 +05:00
parent 6c142fdd74
commit 70e2857d8b
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class SongViewSet(GenericViewSet):
def add_favorite(self, request):
data = None
try:
song = get_object_or_404(Song, azura_id=request.data.get('azura_id'))
song = Song.objects.get(azura_id=request.data.get('azura_id'))
data = {
"song": song,
"user": request.user