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 4f8159f commit 0b04d52Copy full SHA for 0b04d52
django_mongodb/base.py
@@ -130,6 +130,8 @@ def _isnull_operator(a, b):
130
# Operators like $exists: False, $ne, and $nor cannot be used in partial indexes.
131
# So, indexes on null values (isnull=True|False) can't be implemented.
132
"isnull": lambda a, b: {}, # noqa: ARG005
133
+ # Partial indexes do not support the $regex expression.
134
+ "contains": lambda a, b: {}, # noqa: ARG005
135
}
136
137
display_name = "MongoDB"
0 commit comments