1👍
✅
Try this instead of request.data
def updateItem(request):
if request.method =='POST':
productId = request.POST['productId']
action = request.POST['action ']
Source:stackexchange.com