(self)
return original_hp if isinstance(original_hp, ParentHook) else ParentHook(original_hp, self)
Returns an instance of the ParentHook instead of the usual reference to a Parentable.
Returns an instance of the ParentHook instead of the usual reference to a Parentable.
Returns an instance of the ParentHook instead of the usual reference to a Parentable .
def highest_parent(self):
        """
        Returns an instance of the ParentHook instead of the usual reference to a Parentable.
        """
        original_hp = super(ModelWrapper, self).highest_parent
        return original_hp if isinstance(original_hp, ParentHook) else ParentHook(original_hp, self)
def highest_parent ( self ) : original_hp = super ( ModelWrapper , self ) . highest_parent return original_hp if isinstance ( original_hp , ParentHook ) else ParentHook ( original_hp , self )