1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #23919 -- Replaced stray super(ClassName, self) with super().

This commit is contained in:
Tom
2017-06-09 17:32:18 +01:00
committed by Tim Graham
parent 1a49b89470
commit 3eb3907bb1
3 changed files with 4 additions and 3 deletions

View File

@@ -1666,7 +1666,7 @@ class ModelChoiceFieldTests(TestCase):
category = forms.ModelChoiceField(queryset=None)
def __init__(self, *args, **kwargs):
super(ModelChoiceForm, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self.fields['category'].queryset = Category.objects.filter(slug__contains='test')
form = ModelChoiceForm()