fixes for None values in QuerySet.values_list
This commit is contained in:
parent
de8da78042
commit
d8855a4a0f
@ -361,7 +361,10 @@ class ListResult(object):
|
||||
elif isinstance(field_type, self.GenericReferenceField):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user