def METHOD_NAME(self, model):
    """Override the default function to connect the model to update
    function"""
    if self.model() is not None:
        model.modelReset.disconnect(self.__modelReset)
    super(HierarchicalTableView, self).METHOD_NAME(model)
    if self.model() is not None:
        model.modelReset.connect(self.__modelReset)
        self.__modelReset()