summaryrefslogtreecommitdiff
path: root/tests/schema
diff options
context:
space:
mode:
authorchillaranand <anand21nanda@gmail.com>2017-01-21 18:43:44 +0530
committerTim Graham <timograham@gmail.com>2017-01-25 12:23:46 -0500
commitd6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch)
treeab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/schema
parentdc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff)
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/schema')
-rw-r--r--tests/schema/fields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/schema/fields.py b/tests/schema/fields.py
index 5f2b6ba19c..16a61ee5f6 100644
--- a/tests/schema/fields.py
+++ b/tests/schema/fields.py
@@ -32,13 +32,13 @@ class CustomManyToManyField(RelatedField):
self.db_table = kwargs.pop('db_table', None)
if kwargs['rel'].through is not None:
assert self.db_table is None, "Cannot specify a db_table if an intermediary model is used."
- super(CustomManyToManyField, self).__init__(**kwargs)
+ super().__init__(**kwargs)
def contribute_to_class(self, cls, name, **kwargs):
if self.remote_field.symmetrical and (
self.remote_field.model == "self" or self.remote_field.model == cls._meta.object_name):
self.remote_field.related_name = "%s_rel_+" % name
- super(CustomManyToManyField, self).contribute_to_class(cls, name, **kwargs)
+ super().contribute_to_class(cls, name, **kwargs)
if not self.remote_field.through and not cls._meta.abstract and not cls._meta.swapped:
self.remote_field.through = create_many_to_many_intermediary_model(self, cls)
setattr(cls, self.name, ManyToManyDescriptor(self.remote_field))