fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated 404 page to new address.
[redakcja.git]
/
apps
/
wiki
/
helpers.py
diff --git
a/apps/wiki/helpers.py
b/apps/wiki/helpers.py
index
553b1e4
..
bc4b760
100644
(file)
--- a/
apps/wiki/helpers.py
+++ b/
apps/wiki/helpers.py
@@
-24,9
+24,8
@@
class JSONResponse(http.HttpResponse):
# get rid of mimetype
kwargs.pop('mimetype', None)
# get rid of mimetype
kwargs.pop('mimetype', None)
- super(JSONResponse, self).__init__(
- json.dumps(data, cls=ExtendedEncoder),
- mimetype="application/json", **kwargs)
+ data = json.dumps(data, cls=ExtendedEncoder)
+ super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs)
# return errors
# return errors