check for is_json properly
@@ -337,7 +337,7 @@ def edit(request, pk=None, model=None, level=None, space=None, on_top_of=None, e
json_body = getattr(request, 'json_body', None)
data = json_body if json_body is not None else request.POST
- form = model.EditorForm(instance=model() if new else obj, data=data, is_json=True,
+ form = model.EditorForm(instance=model() if new else obj, data=data, is_json=json_body is not None,
request=request, space_id=space_id, force_geometry_editable=force_geometry_editable)
if form.is_valid():
# Update/create objects
