Skip to content

Commit f8d39cc

Browse files
committed
remove _ from methods.
1 parent 7b3fb24 commit f8d39cc

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
@@ -143,9 +143,9 @@ def build_query(self, columns=None):
143143
"""Check if the query is supported and prepare a MongoQuery."""
144144
self.check_query()
145145
query = self.query_class(self)
146-
query.project_fields = self._get_project_fields(columns)
146+
query.project_fields = self.get_project_fields(columns)
147147
query.lookup_pipeline = self.get_lookup_pipeline()
148-
query.annotation_stage = self._get_group_pipeline()
148+
query.annotation_stage = self.get_group_pipeline()
149149
try:
150150
query.mongo_query = {"$expr": self.query.where.as_mql(self, self.connection)}
151151
except FullResultSet:
@@ -250,7 +250,7 @@ def get_lookup_pipeline(self):
250250
result += self.query.alias_map[alias].as_mql(self, self.connection)
251251
return result
252252

253-
def _get_group_pipeline(self):
253+
def get_group_pipeline(self):
254254
pipeline = None
255255
if any(isinstance(a, Aggregate) for a in self.query.annotations.values()):
256256
result = {}
@@ -291,7 +291,7 @@ def _get_group_pipeline(self):
291291

292292
return pipeline
293293

294-
def _get_project_fields(self, columns=None):
294+
def get_project_fields(self, columns=None):
295295
fields = {}
296296
for name, expr in columns or []:
297297
try:

0 commit comments

Comments
 (0)