X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/32974185d5e2b1bdc197b4f5dcab259b5de3c6b4..6334c366b3cb820e6997eea51b14bdc30591ce45:/apps/wiki/helpers.py?ds=sidebyside diff --git a/apps/wiki/helpers.py b/apps/wiki/helpers.py index 9b326d54..dace3d00 100644 --- a/apps/wiki/helpers.py +++ b/apps/wiki/helpers.py @@ -1,8 +1,9 @@ +from datetime import datetime +from functools import wraps + from django import http from django.utils import simplejson as json from django.utils.functional import Promise -from datetime import datetime -from functools import wraps class ExtendedEncoder(json.JSONEncoder): @@ -25,7 +26,6 @@ class JSONResponse(http.HttpResponse): kwargs.pop('mimetype', None) data = json.dumps(data, cls=ExtendedEncoder) - print data super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs)