Updated changelog - fixed dynamic document issue
This commit is contained in:
parent
2bb9493fcf
commit
529c522594
3 changed files with 9 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -8,3 +8,4 @@ detailed-errors = 1
|
|||
#cover-package = mongoengine
|
||||
py3where = build
|
||||
where = tests
|
||||
#tests = test_bugfix.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue