Skip to content

Commit

Permalink
Restore accidentally removed docstring for get_columns method
Browse files Browse the repository at this point in the history
  • Loading branch information
WaVEV committed Dec 29, 2024
1 parent 7a6359a commit 1a6e09d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_mongodb/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ def build_query(self, columns=None):
return query

def get_columns(self):
"""
Return a tuple of (name, expression) with the columns and annotations
which should be loaded by the query
"""
select_mask = self.query.get_select_mask()
columns = (
self.get_default_columns(select_mask) if self.query.default_cols else self.query.select
Expand Down

0 comments on commit 1a6e09d

Please sign in to comment.