Lines Matching refs:query_set
73 def convert_query(self, query_set): argument
78 query_set = query_set.all()
79 query_set.query = query_set.query.clone(
82 return query_set
104 def add_join(self, query_set, join_table, join_key, join_condition='', argument
127 join_from_table = query_set.model._meta.db_table
139 join_type = query_set.query.LOUTER
141 join_type = query_set.query.INNER
143 query_set = self.CustomQuery.convert_query(query_set)
144 query_set.query.add_custom_join(join_table,
151 query_set = query_set.extra(where=[full_join_key + ' IS NULL'])
153 return query_set
226 def join_custom_field(self, query_set, join_to_query, alias, argument
255 return self.add_join(query_set, info['rhs_table'], info['rhs_column'],
276 def add_where(self, query_set, where, values=()): argument
277 query_set = query_set.all()
278 query_set.query.where.add(self._WhereClause(where, values),
280 return query_set
298 def _custom_select_query(self, query_set, selects): argument
306 compiler = query_set.query.get_compiler(using=query_set.db)
310 if query_set.query.distinct:
317 cursor = connections[query_set.db].cursor()