From 15a3952c7b1284528be40beb3c9551a4277483cd Mon Sep 17 00:00:00 2001 From: Asif Saif Uddin Date: Thu, 25 Oct 2018 22:53:24 +0600 Subject: [PATCH] kept a super() call explicit due to https://stackoverflow.com/questions/31895302/python3s-super-and-comprehensions-typeerror --- rest_framework/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 51e38b18b..5a89ba7c4 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().__init__(*args, **kwargs) + super(MultipleChoiceField, self).__init__(*args, **kwargs) def get_value(self, dictionary): if self.field_name not in dictionary: