Skip to content

Commit ac5f920

Browse files
aclark4lifeJibola
andauthored
Update django_mongodb/query.py
Co-authored-by: Jib <[email protected]>
1 parent 1443d77 commit ac5f920

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)