mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-15 06:32:11 +03:00
Merge 57d837c826
into 3c755794df
This commit is contained in:
commit
05d9d55709
|
@ -713,7 +713,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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user