[Answered ]-Strange issue at subclassing?

2πŸ‘

βœ…

I’m not up on the specifics of django involved here, but this method:

def _onSuccess(self, controller):
    # shortened to demonstrate even simple call to super
    # causes a different behaviour
    super(ConfirmControllerEx, self)._onSuccess(controller)

Is not equivalent to the _onSuccess of the parent class. It calls the parent implementation through super, but it ignores whatever that call returns and just returns None (implicitly, by execution reaching the end of the method definition). Given you later get an error that seems to indicate you have a None object (instance of NoneType) where something else was expected, this would be my guess at the error. That’s not going to be it if the contract of the _onSuccess method is to always return None, however.

πŸ‘€Ben

Leave a comment