I am new to Django. I just move from c++. I have a question when I want to override a class method. Why do we need to call the current class name? for example
class MyStuff( models.Model ):
def __init__(self, *args, **kwargs):
super(MyStuff, self).__init__(*args, **kwargs) #calling super "MyStuff" instead of "Model"
I am not sure how does Django work deep inside. Why don't we call super(Model, self)
? How can I call Grandparent method?