parameters: (model, id_list)
return_statement: return object_list
docstring: 根据id列表获取对象列表
docstring_summary: 根据id列表获取对象列表
docstring_tokens: 根据id列表获取对象列表
function: def get_object_list(model, id_list):
      """根据id列表获取对象列表"""
      object_list = []
      for object_id in id_list:
          if object_id:
              object_list.extend(model.objects.filter(id=int(object_id)))
  
      return object_list
function_tokens: def get_object_list ( model , id_list ) : object_list = [ ] for object_id in id_list : if object_id : object_list . extend ( model . objects . filter ( id = int ( object_id ) ) ) return object_list