fix: instance variable in list serializer, remove commented code

This commit is contained in:
Saadullah Aleem 2023-05-28 22:57:51 +05:00
parent 0dc62010b1
commit d747449695

View File

@ -610,7 +610,6 @@ class ListSerializer(BaseSerializer):
assert self.child is not None, '`child` is a required argument.' assert self.child is not None, '`child` is a required argument.'
assert not inspect.isclass(self.child), '`child` has not been instantiated.' assert not inspect.isclass(self.child), '`child` has not been instantiated.'
# instance, data = kwargs.get('instance', []), kwargs.get('data', []) # if you prefer one line assignment support
instance = kwargs.get('instance', []) instance = kwargs.get('instance', [])
data = kwargs.get('data', []) data = kwargs.get('data', [])
if instance and data: if instance and data: