Publication button works, but need better error messages.
[redakcja.git] / apps / wiki / helpers.py
index 553b1e4..9b326d5 100644 (file)
@@ -24,9 +24,9 @@ class JSONResponse(http.HttpResponse):
         # 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)
+        print data
+        super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs)
 
 
 # return errors