more import fixes

This commit is contained in:
Stefan Wojcik 2016-12-08 08:42:32 -05:00
parent 8f657e0f7d
commit 4373ea98cf
3 changed files with 4 additions and 3 deletions

View File

@ -537,6 +537,7 @@ class BaseDocument(object):
DynamicEmbeddedDocument = _import_class("DynamicEmbeddedDocument")
ReferenceField = _import_class("ReferenceField")
SortedListField = _import_class("SortedListField")
changed_fields = []
changed_fields += getattr(self, '_changed_fields', [])

View File

@ -1,10 +1,10 @@
from mongoengine.errors import (DoesNotExist, InvalidQueryError,
MultipleObjectsReturned, NotUniqueError,
OperationError)
from mongoengine.queryset.base import CASCADE, DENY, DO_NOTHING, NULLIFY, PULL
from mongoengine.queryset.field_list import QueryFieldList
from mongoengine.queryset.manager import QuerySetManager, queryset_manager
from mongoengine.queryset.queryset import (CASCADE, DENY, DO_NOTHING, NULLIFY,
PULL, QuerySet, QuerySetNoCache)
from mongoengine.queryset.queryset import QuerySet, QuerySetNoCache
from mongoengine.queryset.visitor import Q

View File

@ -1741,7 +1741,7 @@ class BaseQuerySet(object):
# If we need to coerce types, we need to determine the
# type of this field and use the corresponding
# .to_python(...)
from mongoengine.fields import EmbeddedDocumentField
EmbeddedDocumentField = _import_class('EmbeddedDocumentField')
obj = self._document
for chunk in path.split('.'):