Import fix
This commit is contained in:
parent
954131bd51
commit
06caabf333
@ -756,7 +756,7 @@ class BaseDocument(object):
|
|||||||
the field's parents and the field.
|
the field's parents and the field.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from mongoengine.fields import ListField
|
ListField = _import_class("ListField")
|
||||||
|
|
||||||
if not isinstance(parts, (list, tuple)):
|
if not isinstance(parts, (list, tuple)):
|
||||||
parts = [parts]
|
parts = [parts]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user