We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa867a commit 3e19d6aCopy full SHA for 3e19d6a
rest_framework/serializers.py
@@ -597,7 +597,7 @@ class ListSerializer(BaseSerializer):
597
'max_length': _('Ensure this field has no more than {max_length} elements.'),
598
'min_length': _('Ensure this field has at least {min_length} elements.')
599
}
600
-
+
601
def __init__(self, *args, **kwargs):
602
self.child = kwargs.pop('child', copy.deepcopy(self.child))
603
self.allow_empty = kwargs.pop('allow_empty', True)
@@ -618,9 +618,7 @@ def get_initial(self):
618
return [self.child.get_initial() for _ in self.initial_data]
619
return []
620
621
622
623
624
def get_value(self, dictionary):
625
"""
626
Given the input dictionary, return the field value.
0 commit comments