File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1717from django .utils .functional import cached_property
1818from pymongo import ASCENDING , DESCENDING
1919
20- from django_mongodb .fields import EmbeddedModelField
21-
2220from .base import Cursor
2321from .query import MongoQuery , wrap_database_errors
2422
@@ -549,11 +547,7 @@ def get_combinator_queries(self):
549547 def get_lookup_pipeline (self ):
550548 result = []
551549 for alias in tuple (self .query .alias_map ):
552- if (
553- not self .query .alias_refcount [alias ]
554- or self .collection_name == alias
555- or isinstance (self .query .alias_map [alias ].join_field , EmbeddedModelField )
556- ):
550+ if not self .query .alias_refcount [alias ] or self .collection_name == alias :
557551 continue
558552 result += self .query .alias_map [alias ].as_mql (self , self .connection )
559553 return result
You can’t perform that action at this time.
0 commit comments