Skip to content

Commit 30238fd

Browse files
committed
Simplify if
1 parent 22a5b80 commit 30238fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mongodb_backend/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from django.db.models import Index, UniqueConstraint
33
from pymongo.operations import SearchIndexModel
44

5-
from django_mongodb_backend.indexes import SearchIndex, VectorSearchIndex
5+
from django_mongodb_backend.indexes import SearchIndex
66

77
from .fields import EmbeddedModelField
88
from .query import wrap_database_errors
@@ -289,7 +289,7 @@ def _add_field_index(self, model, field, *, column_prefix=""):
289289
def remove_index(self, model, index):
290290
if index.contains_expressions:
291291
return
292-
if isinstance(index, SearchIndex | VectorSearchIndex):
292+
if isinstance(index, SearchIndex):
293293
# Drop the index if it is supported.
294294
if self.connection.features.supports_atlas_search:
295295
self.get_collection(model._meta.db_table).drop_search_index(index.name)

0 commit comments

Comments
 (0)