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 17
17
from django .utils .functional import cached_property
18
18
from pymongo import ASCENDING , DESCENDING
19
19
20
- from django_mongodb .fields import EmbeddedModelField
21
-
22
20
from .base import Cursor
23
21
from .query import MongoQuery , wrap_database_errors
24
22
@@ -549,11 +547,7 @@ def get_combinator_queries(self):
549
547
def get_lookup_pipeline (self ):
550
548
result = []
551
549
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 :
557
551
continue
558
552
result += self .query .alias_map [alias ].as_mql (self , self .connection )
559
553
return result
You can’t perform that action at this time.
0 commit comments