Make in_bulk() respect no_dereference()

This commit is contained in:
Clay McClure 2014-10-01 15:59:13 -04:00
parent aa28abd517
commit 7d3146234a

View File

@ -619,7 +619,9 @@ class BaseQuerySet(object):
doc_map[doc['_id']] = self._get_as_pymongo(doc)
else:
for doc in docs:
doc_map[doc['_id']] = self._document._from_son(doc, only_fields=self.only_fields)
doc_map[doc['_id']] = self._document._from_son(doc,
only_fields=self.only_fields,
_auto_dereference=self._auto_dereference)
return doc_map