diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index b1b7b6477..56beb03ab 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -711,7 +711,7 @@ class ListSerializer(BaseSerializer): iterable = data.all() if isinstance(data, models.manager.BaseManager) else data return [ - self.child.to_representation(item) for item in iterable + self.child.to_representation(item) if item is not None else None for item in iterable ] def validate(self, attrs):