code: def _query_view(self, model, **kwargs):
          
          QueryForm = functions.get_form('QueryForm')
  
          if 'form_cls' not in kwargs:
              kwargs['form_cls'] = QueryForm
          query = functions.QueryView(model, **kwargs)
          return query
docs: :param model:
          :return: (query, condition)
  
          Default use QueryForm