рефакторинг
This commit is contained in:
parent
a729133761
commit
c915e9f8d8
|
|
@ -42,7 +42,7 @@ class SongViewSet(ViewSet):
|
|||
|
||||
if serializer.is_valid():
|
||||
serializer.save()
|
||||
return Response(f'{response.url}', status=status.HTTP_201_CREATED)
|
||||
return Response(f'{response.raw}', status=status.HTTP_201_CREATED)
|
||||
else:
|
||||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue