Skip to content

Commit 3ff8dd2

Browse files
committed
remove _ from methods.
1 parent 4168b4e commit 3ff8dd2

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
@@ -137,9 +137,9 @@ def build_query(self, columns=None):
137137
"""Check if the query is supported and prepare a MongoQuery."""
138138
self.check_query()
139139
query = self.query_class(self)
140-
query.project_fields = self._get_project_fields(columns)
140+
query.project_fields = self.get_project_fields(columns)
141141
query.lookup_pipeline = self.get_lookup_pipeline()
142-
query.annotation_stage = self._get_group_pipeline()
142+
query.annotation_stage = self.get_group_pipeline()
143143
try:
144144
query.mongo_query = {"$expr": self.query.where.as_mql(self, self.connection)}
145145
except FullResultSet:
@@ -238,7 +238,7 @@ def get_lookup_pipeline(self):
238238
result += self.query.alias_map[alias].as_mql(self, self.connection)
239239
return result
240240

241-
def _get_group_pipeline(self):
241+
def get_group_pipeline(self):
242242
pipeline = None
243243
if any(isinstance(a, Aggregate) for a in self.query.annotations.values()):
244244
result = {}
@@ -279,7 +279,7 @@ def _get_group_pipeline(self):
279279

280280
return pipeline
281281

282-
def _get_project_fields(self, columns=None):
282+
def get_project_fields(self, columns=None):
283283
fields = {}
284284
for name, expr in columns or []:
285285
try:

0 commit comments

Comments
 (0)