def updateReporting(request): postDict = request.POST.dict() # update the Reporting model based on the post information from the client functions.createStepModelFromClient(postDict, True, Reporting) # send back the new Reportings model as a list to use client side existingReportingsList = functions.getListSteps(postDict['datasetID'], Reporting) return JsonResponse({'existingListJSON': json.dumps(existingReportingsList)})
def updateReq(request): postDict = request.POST.dict() # update the Request model based on the post information from the client functions.createStepModelFromClient(postDict, True, DataReq) # send back the new Request model as a list to use client side existingReqsList = functions.getListSteps(postDict['datasetID'], DataReq) return JsonResponse({'existingListJSON': json.dumps(existingReqsList)})
def addExpStep(request): postDict = request.POST.dict() # add a new ExpStep model based on the post information from the client functions.createStepModelFromClient(postDict, False, ExpStep) # send back the new ExpSteps model as a list to use client side existingExpStepsList = functions.getListSteps(postDict['datasetID'], ExpStep) return JsonResponse({'existingListJSON': json.dumps(existingExpStepsList)})