def increaseReporting(request): postDict = request.POST.dict() functions.increaseTaskNr(postDict['datasetID'], postDict['reportingID'], 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 increaseReq(request): postDict = request.POST.dict() functions.increaseTaskNr(postDict['datasetID'], postDict['reqID'], DataReq) # send back the new Reqs model as a list to use client side existingReqsList = functions.getListSteps(postDict['datasetID'], DataReq) return JsonResponse({'existingListJSON': json.dumps(existingReqsList)})
def increaseExpStep(request): postDict = request.POST.dict() functions.increaseTaskNr(postDict['datasetID'], postDict['expStepID'], 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)})