Skip to content

Commit d2a440d

Browse files
committed
Mark AutoField as unsupported in DatabaseWrapper.data_types
1 parent 9ff220c commit d2a440d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

django_mongodb_backend/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def __exit__(self, exception_type, exception_value, exception_traceback):
3434

3535
class DatabaseWrapper(BaseDatabaseWrapper):
3636
data_types = {
37-
"AutoField": "int",
38-
"BigAutoField": "long",
37+
"AutoField": "", # Not supported
38+
"BigAutoField": "", # Not supported
3939
"BinaryField": "binData",
4040
"BooleanField": "bool",
4141
"CharField": "string",
@@ -55,7 +55,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
5555
"PositiveIntegerField": "long",
5656
"PositiveSmallIntegerField": "int",
5757
"SlugField": "string",
58-
"SmallAutoField": "int",
58+
"SmallAutoField": "", # Not supported
5959
"SmallIntegerField": "int",
6060
"TextField": "string",
6161
"TimeField": "date",

0 commit comments

Comments
 (0)