Skip to content

Commit fe06a23

Browse files
committed
Fix using django.utils.simplejson. Now use json.
1 parent 9957fcc commit fe06a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fileupload/response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# encoding: utf-8
22
from django.http import HttpResponse
3-
from django.utils import simplejson
3+
import json
44

55
MIMEANY = '*/*'
66
MIMEJSON = 'application/json'
@@ -34,5 +34,5 @@ def a_iew(request):
3434
"""
3535
def __init__(self, obj='', json_opts=None, mimetype=MIMEJSON, *args, **kwargs):
3636
json_opts = json_opts if isinstance(json_opts, dict) else {}
37-
content = simplejson.dumps(obj, **json_opts)
37+
content = json.dumps(obj, **json_opts)
3838
super(JSONResponse, self).__init__(content, mimetype, *args, **kwargs)

0 commit comments

Comments
 (0)