activate inherit function django
# Use the super() function to accessing inherited methods that have been overridden in a class.:
class Foo(Bar):
def baz(self, arg):
return super().baz(arg)
#For Python < 3, you must explicitly opt in to using new-style classes and use:
class Foo(Bar):
def baz(self, arg):
return super(Foo, self).baz(arg)