Code Review
/
laas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1f3a770
)
Fixed serialization
author
Parker Berberian
<pberberian@iol.unh.edu>
Mon, 22 Oct 2018 14:42:02 +0000
(10:42 -0400)
committer
Parker Berberian
<pberberian@iol.unh.edu>
Mon, 22 Oct 2018 14:42:02 +0000
(10:42 -0400)
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>
src/api/views.py
patch
|
blob
|
history
diff --git
a/src/api/views.py
b/src/api/views.py
index
cefd131
..
072354f
100644
(file)
--- 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())