Change to use super() instead of the old py2 style everywhere

This commit is contained in:
Griatch 2022-01-26 21:45:28 +01:00
parent 55237f20a7
commit 5859de7054
33 changed files with 69 additions and 70 deletions

View file

@ -751,7 +751,7 @@ class TypeclassManager(TypedObjectManager):
Annotated queryset.
"""
return (
super(TypeclassManager, self)
super()
.filter(db_typeclass_path=self.model.path)
.annotate(*args, **kwargs)
)
@ -767,7 +767,7 @@ class TypeclassManager(TypedObjectManager):
Queryset of values dictionaries, just filtered by typeclass first.
"""
return (
super(TypeclassManager, self)
super()
.filter(db_typeclass_path=self.model.path)
.values(*args, **kwargs)
)
@ -783,7 +783,7 @@ class TypeclassManager(TypedObjectManager):
Queryset of value_list tuples, just filtered by typeclass first.
"""
return (
super(TypeclassManager, self)
super()
.filter(db_typeclass_path=self.model.path)
.values_list(*args, **kwargs)
)