fixes for None values in QuerySet.values_list
This commit is contained in:
parent
de8da78042
commit
d8855a4a0f
1 changed files with 4 additions and 1 deletions
|
|
@ -362,6 +362,9 @@ class ListResult(object):
|
||||||
if data and isinstance(data, (dict, pymongo.dbref.DBRef)):
|
if data and isinstance(data, (dict, pymongo.dbref.DBRef)):
|
||||||
return field_type.dereference(data)
|
return field_type.dereference(data)
|
||||||
|
|
||||||
|
if data is None:
|
||||||
|
return
|
||||||
|
|
||||||
return field_type.to_python(data)
|
return field_type.to_python(data)
|
||||||
|
|
||||||
def next(self):
|
def next(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue