Skip to content

Commit e4469c6

Browse files
committed
remove _ from methods.
1 parent 6a5e74f commit e4469c6

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
@@ -174,9 +174,9 @@ def build_query(self, columns=None):
174174
"""Check if the query is supported and prepare a MongoQuery."""
175175
self.check_query()
176176
query = self.query_class(self)
177-
query.project_fields = self._get_project_fields(columns)
177+
query.project_fields = self.get_project_fields(columns)
178178
query.lookup_pipeline = self.get_lookup_pipeline()
179-
query.annotation_stage = self._get_group_pipeline()
179+
query.annotation_stage = self.get_group_pipeline()
180180
try:
181181
query.mongo_query = {"$expr": self.query.where.as_mql(self, self.connection)}
182182
except FullResultSet:
@@ -281,7 +281,7 @@ def get_lookup_pipeline(self):
281281
result += self.query.alias_map[alias].as_mql(self, self.connection)
282282
return result
283283

284-
def _get_group_pipeline(self):
284+
def get_group_pipeline(self):
285285
pipeline = None
286286
if any(isinstance(a, Aggregate) for a in self.query.annotations.values()):
287287
result = {}
@@ -322,7 +322,7 @@ def _get_group_pipeline(self):
322322

323323
return pipeline
324324

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

0 commit comments

Comments
 (0)