def status(self): if self.confirmed_at is None: return EnumValues.find_one_by_code(USER_STATUS_UN_VERIFIED) return EnumValues.find_one_by_code(USER_STATUS_VERIFIED)
def type_filter(): return EnumValues.type_filter(const.USER_TYPE_KEY)