We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b68989 commit 0415f2cCopy full SHA for 0415f2c
django_mongodb/fields/auto.py
@@ -32,7 +32,7 @@ def get_prep_value(self, value):
32
raise ValueError(f"Field '{self.name}' expected an ObjectId but got {value!r}.") from e
33
34
def db_type(self, connection):
35
- return "ObjectId"
+ return "objectId"
36
37
def to_python(self, value):
38
if value is None or isinstance(value, int):
0 commit comments