diff --git a/django_mongodb/forms/__init__.py b/django_mongodb/forms/__init__.py index 69e8793c..96c8775e 100644 --- a/django_mongodb/forms/__init__.py +++ b/django_mongodb/forms/__init__.py @@ -1,5 +1,4 @@ -from .array import SimpleArrayField, SplitArrayField, SplitArrayWidget -from .fields import ObjectIdField +from .fields import ObjectIdField, SimpleArrayField, SplitArrayField, SplitArrayWidget __all__ = [ "SimpleArrayField", diff --git a/django_mongodb/forms/fields/__init__.py b/django_mongodb/forms/fields/__init__.py index 636efa45..298c6b68 100644 --- a/django_mongodb/forms/fields/__init__.py +++ b/django_mongodb/forms/fields/__init__.py @@ -1,3 +1,9 @@ +from .array import SimpleArrayField, SplitArrayField, SplitArrayWidget from .objectid import ObjectIdField -__all__ = ["ObjectIdField"] +__all__ = [ + "SimpleArrayField", + "SplitArrayField", + "SplitArrayWidget", + "ObjectIdField", +] diff --git a/django_mongodb/forms/array.py b/django_mongodb/forms/fields/array.py similarity index 99% rename from django_mongodb/forms/array.py rename to django_mongodb/forms/fields/array.py index 1caa97af..c358d65d 100644 --- a/django_mongodb/forms/array.py +++ b/django_mongodb/forms/fields/array.py @@ -7,7 +7,7 @@ from django_mongodb.validators import ArrayMaxLengthValidator, ArrayMinLengthValidator -from ..utils import prefix_validation_error +from ...utils import prefix_validation_error class SimpleArrayField(forms.CharField):