This commit is contained in:
Shen Li 2025-05-04 20:07:09 +03:00 committed by GitHub
commit 29cc1ad578
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):