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 da5a075 commit 9cd1524Copy full SHA for 9cd1524
django_mongodb/fields/auto.py
@@ -6,7 +6,7 @@
6
from .objectid_mixin import ObjectIdMixin
7
8
9
-class ObjectIdAutoField(AutoField, ObjectIdMixin):
+class ObjectIdAutoField(ObjectIdMixin, AutoField):
10
def __init__(self, *args, **kwargs):
11
kwargs["db_column"] = "_id"
12
super().__init__(*args, **kwargs)
django_mongodb/fields/objectid.py
-class ObjectIdField(Field, ObjectIdMixin):
+class ObjectIdField(ObjectIdMixin, Field):
def get_internal_type(self):
return "ObjectIdField"
0 commit comments