serializer won't serialize an empty queryset or an iterator with a None item
|Reported by:||adrian_nye||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Ideally, I'd like to be able to serialize any queryset (including an empty one) or a list of django objects including one that is None,
and when I deserialize I should get the same queryset or the same list.
What happens now is you get the error 'NoneType' object has no attribute '_meta'.
If that is not possible, then it should be documented that an empty queryset or an iterator containing a None object cannot be serialized.