mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-05 01:04:11 +03:00
Remove unnecessary blank lines in serializers.py
This commit is contained in:
parent
8fa867aeb6
commit
3e19d6a3ac
|
|
@ -597,7 +597,7 @@ class ListSerializer(BaseSerializer):
|
||||||
'max_length': _('Ensure this field has no more than {max_length} elements.'),
|
'max_length': _('Ensure this field has no more than {max_length} elements.'),
|
||||||
'min_length': _('Ensure this field has at least {min_length} elements.')
|
'min_length': _('Ensure this field has at least {min_length} elements.')
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.child = kwargs.pop('child', copy.deepcopy(self.child))
|
self.child = kwargs.pop('child', copy.deepcopy(self.child))
|
||||||
self.allow_empty = kwargs.pop('allow_empty', True)
|
self.allow_empty = kwargs.pop('allow_empty', True)
|
||||||
|
|
@ -618,9 +618,7 @@ class ListSerializer(BaseSerializer):
|
||||||
return [self.child.get_initial() for _ in self.initial_data]
|
return [self.child.get_initial() for _ in self.initial_data]
|
||||||
return []
|
return []
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_value(self, dictionary):
|
def get_value(self, dictionary):
|
||||||
"""
|
"""
|
||||||
Given the input dictionary, return the field value.
|
Given the input dictionary, return the field value.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user