Skip to content

Commit 169e55a

Browse files
aclark4lifeJibola
andcommitted
Update django_mongodb/query.py
Co-authored-by: Jib <[email protected]>
1 parent cf1319e commit 169e55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def _execute_query(self):
366366

367367
collection = connection.get_collection(self.model._meta.db_table)
368368

369-
return collection.aggregate(self.sql)
369+
self.cursor = collection.aggregate(self.sql)
370370

371371
def get_columns(self):
372372
if self.cursor is None:

0 commit comments

Comments
 (0)