From 97d62e77eb96c74dfdb697fc9f0dd92b3d4d7b46 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Mon, 22 Oct 2018 10:42:02 -0400 Subject: [PATCH] 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 --- src/api/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/views.py b/src/api/views.py index cefd131..072354f 100644 --- a/src/api/views.py +++ b/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()) -- 2.16.6