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 b2096db commit 541b214Copy full SHA for 541b214
django_mongodb_backend/fields/auto.py
@@ -35,9 +35,7 @@ def get_prep_value(self, value):
35
# A manually assigned integer ID?
36
if isinstance(value, str) and value.isdigit():
37
return int(value)
38
- raise ValueError(
39
- f"Field '{self.name}' expected an ObjectId but got {value!r}."
40
- ) from e
+ raise ValueError(f"Field '{self.name}' expected an ObjectId but got {value!r}.") from e
41
42
def get_internal_type(self):
43
return "ObjectIdAutoField"
0 commit comments