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 3270c6c commit b3a4245Copy full SHA for b3a4245
django_mongodb_backend/features.py
@@ -601,9 +601,7 @@ def django_test_skips(self):
601
def supports_atlas_search(self):
602
"""Does the server support Atlas search queries and search indexes?"""
603
try:
604
- # An existing collection must be used on MongoDB 6, otherwise
605
- # the operation will not error when unsupported.
606
- self.connection.get_collection("django_migrations").list_search_indexes()
+ self.connection.get_collection("__null").list_search_indexes()
607
except OperationFailure:
608
# It would be best to check the error message or error code to
609
# avoid hiding some other exception, but the message/code varies
0 commit comments