From: Parker Berberian Date: Mon, 22 Oct 2018 14:42:02 +0000 (-0400) Subject: Fixed serialization X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=7408d145f6c4a1c231a6fdfa08a174abdb8aaae4;p=pharos-tools.git Fixed serialization There was no need to serialize he dict ourselves. JsonResponse wants to recieve a dict. Change-Id: I2af1d9d8f0ccec4644e64ffce0de6005773be786 Signed-off-by: Parker Berberian --- diff --git a/dashboard/src/api/views.py b/dashboard/src/api/views.py index cefd131..072354f 100644 --- a/dashboard/src/api/views.py +++ b/dashboard/src/api/views.py @@ -94,8 +94,7 @@ def specific_task(request, lab_name="", job_id="", task_id=""): m['job'] = str(task.job) m['message'] = task.message d['meta'] = m - response = json.dumps(d) - return JsonResponse(response) + return JsonResponse(d, safe=False) elif request.method == "GET": return JsonResponse(get_task(task_id).config.get_delta())