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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user