'Default the Organisation during registration - will return the organisation_id'

def get_auth_registration_organisation_id_default(self):

    name = self.auth.get('registration_organisation_default')
    if name:
        otable = current.s3db.org_organisation
        orow = current.db((otable.name == name)).select(otable.id).first()
        if orow:
            organisation_id = orow.id
        else:
            organisation_id = otable.insert(name=name)
    else:
        organisation_id = None
    return organisation_id
