Skip to content

Commit e3606d1

Browse files
committed
Mark AutoField as unsupported in DatabaseWrapper.data_types
1 parent 37a9dd5 commit e3606d1

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
@@ -40,8 +40,8 @@ def __exit__(self, exception_type, exception_value, exception_traceback):
4040

4141
class DatabaseWrapper(BaseDatabaseWrapper):
4242
data_types = {
43-
"AutoField": "int",
44-
"BigAutoField": "long",
43+
"AutoField": "", # Not supported
44+
"BigAutoField": "", # Not supported
4545
"BinaryField": "binData",
4646
"BooleanField": "bool",
4747
"CharField": "string",
@@ -61,7 +61,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
6161
"PositiveIntegerField": "long",
6262
"PositiveSmallIntegerField": "int",
6363
"SlugField": "string",
64-
"SmallAutoField": "int",
64+
"SmallAutoField": "", # Not supported
6565
"SmallIntegerField": "int",
6666
"TextField": "string",
6767
"TimeField": "date",

0 commit comments

Comments
 (0)