Skip to content

Commit d372884

Browse files
committed
remove _ from methods.
1 parent 3bcf57e commit d372884

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
@@ -138,9 +138,9 @@ def build_query(self, columns=None):
138138
self.check_query()
139139
self.setup_query()
140140
query = self.query_class(self)
141-
query.project_fields = self._get_project_fields(columns)
141+
query.project_fields = self.get_project_fields(columns)
142142
query.lookup_pipeline = self.get_lookup_pipeline()
143-
query.annotation_stage = self._get_group_pipeline()
143+
query.annotation_stage = self.get_group_pipeline()
144144
try:
145145
query.mongo_query = {"$expr": self.query.where.as_mql(self, self.connection)}
146146
except FullResultSet:
@@ -239,7 +239,7 @@ def get_lookup_pipeline(self):
239239
result += self.query.alias_map[alias].as_mql(self, self.connection)
240240
return result
241241

242-
def _get_group_pipeline(self):
242+
def get_group_pipeline(self):
243243
pipeline = None
244244
if any(isinstance(a, Aggregate) for a in self.query.annotations.values()):
245245
result = {}
@@ -280,7 +280,7 @@ def _get_group_pipeline(self):
280280

281281
return pipeline
282282

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

0 commit comments

Comments
 (0)