File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ def build_query(self, columns=None):
138
138
self .check_query ()
139
139
self .setup_query ()
140
140
query = self .query_class (self )
141
- query .project_fields = self ._get_project_fields (columns )
141
+ query .project_fields = self .get_project_fields (columns )
142
142
query .lookup_pipeline = self .get_lookup_pipeline ()
143
- query .annotation_stage = self ._get_group_pipeline ()
143
+ query .annotation_stage = self .get_group_pipeline ()
144
144
try :
145
145
query .mongo_query = {"$expr" : self .query .where .as_mql (self , self .connection )}
146
146
except FullResultSet :
@@ -239,7 +239,7 @@ def get_lookup_pipeline(self):
239
239
result += self .query .alias_map [alias ].as_mql (self , self .connection )
240
240
return result
241
241
242
- def _get_group_pipeline (self ):
242
+ def get_group_pipeline (self ):
243
243
pipeline = None
244
244
if any (isinstance (a , Aggregate ) for a in self .query .annotations .values ()):
245
245
result = {}
@@ -280,7 +280,7 @@ def _get_group_pipeline(self):
280
280
281
281
return pipeline
282
282
283
- def _get_project_fields (self , columns = None ):
283
+ def get_project_fields (self , columns = None ):
284
284
fields = {}
285
285
for name , expr in columns or []:
286
286
try :
You can’t perform that action at this time.
0 commit comments