From b4319fb9498b6794b257386baa4de61a6804e01c Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Thu, 20 Mar 2014 21:45:29 +0100 Subject: [PATCH] Fix data wrapping for properties --- couchdbkit/schema/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchdbkit/schema/base.py b/couchdbkit/schema/base.py index fbac71b..8a32c2f 100644 --- a/couchdbkit/schema/base.py +++ b/couchdbkit/schema/base.py @@ -310,7 +310,7 @@ def __getstate__(self): def wrap(cls, data): """ wrap `data` dict in object properties """ instance = cls() - instance._doc = data + instance._doc = data.copy() for prop in instance._properties.values(): if prop.name in data: value = data[prop.name]