diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2018-10-22 10:42:02 -0400 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2018-10-22 10:42:02 -0400 |
commit | 97d62e77eb96c74dfdb697fc9f0dd92b3d4d7b46 (patch) | |
tree | 91debdb5180e618ff1da97e2890179a4e38a0119 | |
parent | 1f3a770d2547848590f39e9d9b9bdffeb94eec14 (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>
-rw-r--r-- | src/api/views.py | 3 |
1 files changed, 1 insertions, 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()) |