def apply_changes_to_model(task_entry, task_entry_model):
    """Makes changes to the given model when differences are found.

    Args:
        task_entry: improvements_domain.TaskEntry. The TaskEntry domain object
            to be check if changes made to the TaskEntry model.
        task_entry_model: improvements_models.TaskEntryModel. The TaskEntry
            model object to be compared with TaskEntry domain object.

    Returns:
        bool. Whether any change was made to the model.
    """
    if task_entry_model.id != task_entry.task_id:
        raise Exception('Wrong model provided')
    changes_were_made_to_model = False
    if task_entry_model.issue_description != task_entry.issue_description:
        task_entry_model.issue_description = task_entry.issue_description
        changes_were_made_to_model = True
    if task_entry_model.status != task_entry.status:
        task_entry_model.status = task_entry.status
        task_entry_model.resolver_id = task_entry.resolver_id
        task_entry_model.resolved_on = task_entry.resolved_on
        changes_were_made_to_model = True
    return changes_were_made_to_model