Skip to content

Commit 8d26fcf

Browse files
WaVEVtimgraham
authored andcommitted
remove _ from methods.
1 parent 926078c commit 8d26fcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_mongodb/compiler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ def build_query(self, columns=None):
172172
"""Check if the query is supported and prepare a MongoQuery."""
173173
self.check_query()
174174
query = self.query_class(self)
175-
query.project_fields = self._get_project_fields(columns)
175+
query.project_fields = self.get_project_fields(columns)
176176
query.lookup_pipeline = self.get_lookup_pipeline()
177-
query.annotation_stage = self._get_group_pipeline()
177+
query.annotation_stage = self.get_group_pipeline()
178178
try:
179179
query.mongo_query = {"$expr": self.query.where.as_mql(self, self.connection)}
180180
except FullResultSet:
@@ -279,7 +279,7 @@ def get_lookup_pipeline(self):
279279
result += self.query.alias_map[alias].as_mql(self, self.connection)
280280
return result
281281

282-
def _get_group_pipeline(self):
282+
def get_group_pipeline(self):
283283
pipeline = None
284284
if any(isinstance(a, Aggregate) for a in self.query.annotations.values()):
285285
result = {}
@@ -320,7 +320,7 @@ def _get_group_pipeline(self):
320320

321321
return pipeline
322322

323-
def _get_project_fields(self, columns=None):
323+
def get_project_fields(self, columns=None):
324324
fields = {}
325325
for name, expr in columns or []:
326326
try:

0 commit comments

Comments
 (0)