mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 04:02:35 +03:00
fix: instance variable in list serializer, remove commented code
This commit is contained in:
parent
0dc62010b1
commit
d747449695
|
@ -610,7 +610,6 @@ class ListSerializer(BaseSerializer):
|
|||
assert self.child is not None, '`child` is a required argument.'
|
||||
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', [])
|
||||
data = kwargs.get('data', [])
|
||||
if instance and data:
|
||||
|
|
Loading…
Reference in New Issue
Block a user