mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super().
This commit is contained in:
@@ -36,7 +36,7 @@ class StartsWithRelation(models.ForeignObject):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargs['on_delete'] = models.DO_NOTHING
|
||||
super(StartsWithRelation, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
@property
|
||||
def field(self):
|
||||
@@ -64,7 +64,7 @@ class StartsWithRelation(models.ForeignObject):
|
||||
return [PathInfo(from_opts, to_opts, (to_opts.pk,), self.remote_field, False, False)]
|
||||
|
||||
def contribute_to_class(self, cls, name, private_only=False):
|
||||
super(StartsWithRelation, self).contribute_to_class(cls, name, private_only)
|
||||
super().contribute_to_class(cls, name, private_only)
|
||||
setattr(cls, self.name, ReverseManyToOneDescriptor(self))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user