'Lookup the default skill_type'

@staticmethod
def skill_type_default():

    if current.deployment_settings.get_hrm_skill_types():
        default = None
    else:
        db = current.db
        table = db.hrm_skill_type
        skill_type = db((table.deleted == False)).select(table.id, limitby=(0, 1)).first()
        try:
            default = skill_type.id
        except:
            default = table.insert(name='Default')
    return default
