[Answered ]-Django: AttributeError at /update_item/ 'WSGIRequest' object has no attribute 'data'

1👍

Try this instead of request.data

def updateItem(request):

     if request.method =='POST':
            productId = request.POST['productId'] 
            action = request.POST['action ']
👤Dunski

Leave a comment