Skip to content

Commit 233d086

Browse files
committed
move forms/array.py to forms/fields/array.py
1 parent 376a78e commit 233d086

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

django_mongodb/forms/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from .array import SimpleArrayField, SplitArrayField, SplitArrayWidget
2-
from .fields import ObjectIdField
1+
from .fields import ObjectIdField, SimpleArrayField, SplitArrayField, SplitArrayWidget
32

43
__all__ = [
54
"SimpleArrayField",
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
from .array import SimpleArrayField, SplitArrayField, SplitArrayWidget
12
from .objectid import ObjectIdField
23

3-
__all__ = ["ObjectIdField"]
4+
__all__ = [
5+
"SimpleArrayField",
6+
"SplitArrayField",
7+
"SplitArrayWidget",
8+
"ObjectIdField",
9+
]

django_mongodb/forms/array.py renamed to django_mongodb/forms/fields/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from django_mongodb.validators import ArrayMaxLengthValidator, ArrayMinLengthValidator
99

10-
from ..utils import prefix_validation_error
10+
from ...utils import prefix_validation_error
1111

1212

1313
class SimpleArrayField(forms.CharField):

0 commit comments

Comments
 (0)