Fixed queryset.get() respecting no_dereference (#373)

This commit is contained in:
Ross Lawley
2013-06-21 10:39:10 +00:00
parent f1a1aa54d8
commit e116bb9227
3 changed files with 5 additions and 2 deletions

View File

@@ -1165,8 +1165,8 @@ class QuerySet(object):
raw_doc = self._cursor.next()
if self._as_pymongo:
return self._get_as_pymongo(raw_doc)
doc = self._document._from_son(raw_doc)
doc = self._document._from_son(raw_doc,
_auto_dereference=self._auto_dereference)
if self._scalar:
return self._get_scalar(doc)