Skip to content

Commit c0707cc

Browse files
committed
refactor.
1 parent 0b432c1 commit c0707cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

django_mongodb_backend/indexes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def get_pymongo_index_model(self, model, schema_editor, field=None, unique=False
5353
query = Query(model=model, alias_cols=False)
5454
compiler = query.get_compiler(connection=schema_editor.connection)
5555
for expression in self.expressions:
56-
query = Query(model=model, alias_cols=False)
5756
field_ = expression.resolve_expression(query)
5857
column = field_.as_mql(compiler, schema_editor.connection, as_path=True)
5958
db_type = (

0 commit comments

Comments
 (0)