def save_history(jurisdiction, source_table, source_id, target_table, target_id, notes='', notes2=''):
        history, created = MigrationHistory.objects.get_or_create(source_table=source_table, source_id=source_id, target_table=target_table, target_id=target_id)
        if jurisdiction != None:
            history.jurisdiction_id = jurisdiction.id
        history.notes = notes
        history.notes2 = notes2
        history.save()
        return history