diff --git a/mongoengine/base/document.py b/mongoengine/base/document.py index 4181bcd5..f03ce848 100644 --- a/mongoengine/base/document.py +++ b/mongoengine/base/document.py @@ -100,13 +100,11 @@ class BaseDocument(object): for key, value in values.iteritems(): if key in self._fields or key == '_id': setattr(self, key, value) - elif self._dynamic: + else: dynamic_data[key] = value else: FileField = _import_class('FileField') for key, value in values.iteritems(): - if key == '__auto_convert': - continue key = self._reverse_db_field_map.get(key, key) if key in self._fields or key in ('id', 'pk', '_cls'): if __auto_convert and value is not None: diff --git a/mongoengine/document.py b/mongoengine/document.py index c8532e5b..b9db8bc6 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -1000,7 +1000,7 @@ class Document(BaseDocument): class DynamicDocument(Document): """A Dynamic Document class allowing flexible, expandable and uncontrolled schemas. As a :class:`~mongoengine.Document` subclass, acts in the same - way as an ordinary document but has expando style properties. Any data + way as an ordinary document but has expanded style properties. Any data passed or set against the :class:`~mongoengine.DynamicDocument` that is not a field is automatically converted into a :class:`~mongoengine.fields.DynamicField` and data can be attributed to that