Skip to content

Commit

Permalink
move forms/array.py to forms/fields/array.py
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Jan 6, 2025
1 parent 376a78e commit 233d086
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions django_mongodb/forms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .array import SimpleArrayField, SplitArrayField, SplitArrayWidget
from .fields import ObjectIdField
from .fields import ObjectIdField, SimpleArrayField, SplitArrayField, SplitArrayWidget

__all__ = [
"SimpleArrayField",
Expand Down
8 changes: 7 additions & 1 deletion django_mongodb/forms/fields/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from .array import SimpleArrayField, SplitArrayField, SplitArrayWidget
from .objectid import ObjectIdField

__all__ = ["ObjectIdField"]
__all__ = [
"SimpleArrayField",
"SplitArrayField",
"SplitArrayWidget",
"ObjectIdField",
]
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 233d086

Please sign in to comment.