Skip to content

Commit fd0c31a

Browse files
committed
remove _ from methods.
1 parent a9a0387 commit fd0c31a

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:
@@ -244,7 +244,7 @@ def get_lookup_pipeline(self):
244244
result += self.query.alias_map[alias].as_mql(self, self.connection)
245245
return result
246246

247-
def _get_group_pipeline(self):
247+
def get_group_pipeline(self):
248248
pipeline = None
249249
if any(isinstance(a, Aggregate) for a in self.query.annotations.values()):
250250
result = {}
@@ -285,7 +285,7 @@ def _get_group_pipeline(self):
285285

286286
return pipeline
287287

288-
def _get_project_fields(self, columns=None):
288+
def get_project_fields(self, columns=None):
289289
fields = {}
290290
for name, expr in columns or []:
291291
try:

0 commit comments

Comments
 (0)