Merge pull request #403 from wpjunior/patch-5

Fixes for None values in QuerySet.values_list
This commit is contained in:
Ross Lawley 2012-01-06 01:17:27 -08:00
commit 39a20ea471

View File

@ -362,6 +362,9 @@ class ListResult(object):
if data and isinstance(data, (dict, pymongo.dbref.DBRef)):
return field_type.dereference(data)
if data is None:
return
return field_type.to_python(data)
def next(self):