From effe331464c705fe21f917bdc07259008c93807b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 5 Mar 2012 09:59:32 +0100 Subject: [PATCH] do not convert relationvalue lists in place --- themis/importexport/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/themis/importexport/utils.py b/themis/importexport/utils.py index 929b5e5..db9e7ba 100644 --- a/themis/importexport/utils.py +++ b/themis/importexport/utils.py @@ -128,6 +128,7 @@ def convert(value, attr=None, context=None): else: value = value.to_object.id elif isinstance(value, list) and value: + value = value[:] if isinstance(value[0], z3c.relationfield.relation.RelationValue): for i, v in enumerate(value): if v.to_object is None: