From 1a6e09de9d5c813701690dd67b9030e4bea7d8fd Mon Sep 17 00:00:00 2001 From: Emanuel Lupi Date: Sun, 29 Dec 2024 20:23:05 -0300 Subject: [PATCH] Restore accidentally removed docstring for get_columns method --- django_mongodb/compiler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django_mongodb/compiler.py b/django_mongodb/compiler.py index d2e5942e..96dd6118 100644 --- a/django_mongodb/compiler.py +++ b/django_mongodb/compiler.py @@ -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