Skip to content

Commit ccf2897

Browse files
committed
switched to simplejson
1 parent 3196796 commit ccf2897

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

djcelery/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from django.http import HttpResponse, Http404
66

7-
from anyjson import serialize
7+
import simplejson as json
88

99
from celery import states
1010
from celery.five import keys, items
@@ -18,7 +18,7 @@
1818

1919

2020
def JsonResponse(response):
21-
return HttpResponse(serialize(response), content_type='application/json')
21+
return HttpResponse(json.dumps(response), content_type='application/json')
2222

2323

2424
def task_view(task):

requirements/default.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
celery>=3.1.26,<4.0.0
2-
anyjson
2+
simplejson

0 commit comments

Comments
 (0)