def hook_response(response='Update triggered', status='success'):
 return JsonResponse(data={'status': status, 'message': response})

def hook_response ( response = 'Update triggered' , status = 'success' ) : return JsonResponse ( data = { 'status' : status , 'message' : response } )
generic okay hook response .