mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 03:20:12 +03:00
kept a super() call explicit due to https://stackoverflow.com/questions/31895302/python3s-super-and-comprehensions-typeerror
This commit is contained in:
parent
15a3952c7b
commit
a63a68cea7
|
@ -1472,7 +1472,7 @@ class MultipleChoiceField(ChoiceField):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.allow_empty = kwargs.pop('allow_empty', True)
|
||||
super(MultipleChoiceField, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def get_value(self, dictionary):
|
||||
if self.field_name not in dictionary:
|
||||
|
@ -1491,7 +1491,7 @@ class MultipleChoiceField(ChoiceField):
|
|||
self.fail('empty')
|
||||
|
||||
return {
|
||||
super().to_internal_value(item)
|
||||
super(MultipleChoiceField, self).to_internal_value(item)
|
||||
for item in data
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user