From 529c5225944943ca541ff5bba570535af5363605 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Mon, 13 Aug 2012 16:42:51 +0100 Subject: [PATCH] Updated changelog - fixed dynamic document issue --- docs/changelog.rst | 7 +++++++ mongoengine/base.py | 5 +---- setup.cfg | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index c05da946..b839496a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,13 @@ Changelog ========= +Changes in 0.7.X +================= +- Fixed Dynamic Documents and Embedded Documents (hmarr/mongoengine#561) +- Fixed abstract classes and shard keys (MongoEngine/mongoengine#64) +- Fixed Python 2.5 support +- Added Python 3 support (thanks to Laine Heron) + Changes in 0.6.20 ================= - Added support for distinct and db_alias (MongoEngine/mongoengine#59) diff --git a/mongoengine/base.py b/mongoengine/base.py index 55e604a2..b2348ac8 100644 --- a/mongoengine/base.py +++ b/mongoengine/base.py @@ -897,10 +897,7 @@ class BaseDocument(object): cls = get_document(value['_cls']) if PY25: value = dict([(str(k), v) for k, v in value.items()]) - value = cls(**value) - value._dynamic = True - value._changed_fields = [] - return value + return cls(**value) data = {} for k, v in value.items(): diff --git a/setup.cfg b/setup.cfg index 3b1a561c..f28e6687 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,3 +8,4 @@ detailed-errors = 1 #cover-package = mongoengine py3where = build where = tests +#tests = test_bugfix.py \ No newline at end of file