<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def handle_stage_changed(self, model):
        '''
        handle a stage change in the data model

        :param model: the data model that was changed
        '''
        stages = model.get_stages()
        if self.dataman:
            self.dataman.set('stages', stages)