|
|
@@ -211,7 +211,12 @@ def export_json( |
|
|
|
doctype, path, filters=None, or_filters=None, name=None, order_by="creation asc" |
|
|
|
): |
|
|
|
def post_process(out): |
|
|
|
del_keys = ("modified_by", "creation", "owner", "idx") |
|
|
|
# Note on Tree DocTypes: |
|
|
|
# The tree structure is maintained in the database via the fields "lft" |
|
|
|
# and "rgt". They are automatically set and kept up-to-date. Importing |
|
|
|
# them would destroy any existing tree structure. For this reason they |
|
|
|
# are not exported as well. |
|
|
|
del_keys = ("modified_by", "creation", "owner", "idx", "lft", "rgt") |
|
|
|
for doc in out: |
|
|
|
for key in del_keys: |
|
|
|
if key in doc: |
|
|
|