Import fix

This commit is contained in:
Ross Lawley 2013-11-29 11:53:24 +00:00
parent 954131bd51
commit 06caabf333

View File

@ -756,7 +756,7 @@ class BaseDocument(object):
the field's parents and the field.
"""
from mongoengine.fields import ListField
ListField = _import_class("ListField")
if not isinstance(parts, (list, tuple)):
parts = [parts]