[Fixed]-Django self,pk for success function after save()

1👍

When return you can include the data you want to send by ex:

from django.http import JsonResponse
data = {'message':'your message'}
return JsonResponse(data)

and in the javascript ..

success: function(response) {
    console.log(response.message);

Leave a comment