summaryrefslogtreecommitdiffstats
path: root/dashboard/src
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2018-10-22 10:42:02 -0400
committerParker Berberian <pberberian@iol.unh.edu>2018-10-22 10:42:02 -0400
commit7408d145f6c4a1c231a6fdfa08a174abdb8aaae4 (patch)
tree5ef19caa74ba762a7a44959a3e39e787dfb48b0b /dashboard/src
parent25275685e9a735e51fae8b1a936ba5733f6fb770 (diff)
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 <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src')
-rw-r--r--dashboard/src/api/views.py3
1 files changed, 1 insertions, 2 deletions
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())