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
|
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():
|
||||||
|
|
|
||||||
|
|
@ -8,3 +8,4 @@ detailed-errors = 1
|
||||||
#cover-package = mongoengine
|
#cover-package = mongoengine
|
||||||
py3where = build
|
py3where = build
|
||||||
where = tests
|
where = tests
|
||||||
|
#tests = test_bugfix.py
|
||||||
Loading…
Add table
Add a link
Reference in a new issue