We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3196796 commit ccf2897Copy full SHA for ccf2897
djcelery/views.py
@@ -4,7 +4,7 @@
4
5
from django.http import HttpResponse, Http404
6
7
-from anyjson import serialize
+import simplejson as json
8
9
from celery import states
10
from celery.five import keys, items
@@ -18,7 +18,7 @@
18
19
20
def JsonResponse(response):
21
- return HttpResponse(serialize(response), content_type='application/json')
+ return HttpResponse(json.dumps(response), content_type='application/json')
22
23
24
def task_view(task):
requirements/default.txt
@@ -1,2 +1,2 @@
1
celery>=3.1.26,<4.0.0
2
-anyjson
+simplejson
0 commit comments