mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super().
This commit is contained in:
parent
dc165ec8e5
commit
d6eaf7c018
339 changed files with 1221 additions and 1296 deletions
|
@ -51,7 +51,7 @@ class Note(models.Model):
|
|||
return self.note
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(Note, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
# Regression for #13227 -- having an attribute that
|
||||
# is unpicklable doesn't stop you from cloning queries
|
||||
# that use objects of that type as an argument.
|
||||
|
@ -195,7 +195,7 @@ class LoopZ(models.Model):
|
|||
|
||||
class CustomManager(models.Manager):
|
||||
def get_queryset(self):
|
||||
qs = super(CustomManager, self).get_queryset()
|
||||
qs = super().get_queryset()
|
||||
return qs.filter(public=True, tag__name='t1')
|
||||
|
||||
|
||||
|
@ -219,7 +219,7 @@ class Detail(models.Model):
|
|||
|
||||
class MemberManager(models.Manager):
|
||||
def get_queryset(self):
|
||||
return super(MemberManager, self).get_queryset().select_related("details")
|
||||
return super().get_queryset().select_related("details")
|
||||
|
||||
|
||||
class Member(models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue