0👍
You can return any Django response with proper data, ex:
....
return JsonResponse({'errors': serializer.errors}, status=500)
Source:stackexchange.com
0👍
You can return any Django response with proper data, ex:
....
return JsonResponse({'errors': serializer.errors}, status=500)