Updated changelog - fixed dynamic document issue
This commit is contained in:
parent
2bb9493fcf
commit
529c522594
@ -2,6 +2,13 @@
|
|||||||
Changelog
|
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
|
Changes in 0.6.20
|
||||||
=================
|
=================
|
||||||
- Added support for distinct and db_alias (MongoEngine/mongoengine#59)
|
- Added support for distinct and db_alias (MongoEngine/mongoengine#59)
|
||||||
|
@ -897,10 +897,7 @@ class BaseDocument(object):
|
|||||||
cls = get_document(value['_cls'])
|
cls = get_document(value['_cls'])
|
||||||
if PY25:
|
if PY25:
|
||||||
value = dict([(str(k), v) for k, v in value.items()])
|
value = dict([(str(k), v) for k, v in value.items()])
|
||||||
value = cls(**value)
|
return cls(**value)
|
||||||
value._dynamic = True
|
|
||||||
value._changed_fields = []
|
|
||||||
return value
|
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
for k, v in value.items():
|
for k, v in value.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user