mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-21 13:06:19 +03:00
Merge 57d837c826
into 985dd732e0
This commit is contained in:
commit
29cc1ad578
|
@ -713,7 +713,7 @@ class ListSerializer(BaseSerializer):
|
||||||
iterable = data.all() if isinstance(data, models.manager.BaseManager) else data
|
iterable = data.all() if isinstance(data, models.manager.BaseManager) else data
|
||||||
|
|
||||||
return [
|
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):
|
def validate(self, attrs):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user