Skip to content

Commit 681b712

Browse files
author
Mark Unsworth
committed
removed the use of the fields parameter which has now been changed to projection since pymongo 3.0
1 parent 9fa43d4 commit 681b712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_engine/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get_cursor(self):
136136
return []
137137

138138
fields = get_selected_fields(self.query)
139-
cursor = self.collection.find(self.mongo_query, fields=fields)
139+
cursor = self.collection.find(self.mongo_query, fields)
140140
if self.ordering:
141141
cursor.sort(self.ordering)
142142
if self.query.low_mark > 0:

0 commit comments

Comments
 (0)