diff options
| author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
| commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
| tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/model_forms/tests.py | |
| parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/model_forms/tests.py')
| -rw-r--r-- | tests/model_forms/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 3c8f7ed108..9dd8e79513 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -216,7 +216,7 @@ class ModelFormBaseTest(TestCase): fields = '__all__' def __init__(self, *args, **kwargs): - super(FormForTestingIsValid, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.fields['character'].required = False char = Character.objects.create(username='user', @@ -245,7 +245,7 @@ class ModelFormBaseTest(TestCase): fields = '__all__' def __init__(self, *args, **kwargs): - super(AwardForm, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.fields['character'].required = False character = Character.objects.create(username='user', last_action=datetime.datetime.today()) @@ -2947,7 +2947,7 @@ class LocalizedModelFormTest(TestCase): class CustomMetaclass(ModelFormMetaclass): def __new__(cls, name, bases, attrs): - new = super(CustomMetaclass, cls).__new__(cls, name, bases, attrs) + new = super().__new__(cls, name, bases, attrs) new.base_fields = {} return new |
