From a63a68cea7af16a52dac66d421541374c4d8c54a Mon Sep 17 00:00:00 2001 From: Asif Saif Uddin Date: Thu, 25 Oct 2018 23:06:42 +0600 Subject: [PATCH] kept a super() call explicit due to https://stackoverflow.com/questions/31895302/python3s-super-and-comprehensions-typeerror --- rest_framework/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 5a89ba7c4..deb572222 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -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 }