def getFullName(obj):
    '''
    This function replaces the fullName property for StaffMembers and the
    get_full_name() method for Users, since those methods are not available
    in the migration.
    '''
    if hasattr(obj, 'firstName') and hasattr(obj, 'lastName'):
        return ' '.join([obj.firstName or '', obj.lastName or ''])
    return ' '.join([getattr(obj, 'first_name', ''),getattr(obj, 'last_name', '')])
This function replaces the fullName property for StaffMembers and the
    get_full_name() method for Users, since those methods are not available
    in the migration.