Updated changelog - fixed dynamic document issue

This commit is contained in:
Ross Lawley 2012-08-13 16:42:51 +01:00
parent 2bb9493fcf
commit 529c522594
3 changed files with 9 additions and 4 deletions

View File

@ -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)

View File

@ -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():

View File

@ -8,3 +8,4 @@ detailed-errors = 1
#cover-package = mongoengine
py3where = build
where = tests
#tests = test_bugfix.py