Lines Matching refs:join_to_query
155 def _info_for_many_to_one_join(self, field, join_to_query, alias): argument
163 rhs_table = join_to_query.model._meta.db_table
167 rhs_where = join_to_query.query.where
169 compiler = join_to_query.query.get_compiler(using=join_to_query.db)
175 if hasattr(join_to_query.query, 'extra_where'):
176 all_clauses += join_to_query.query.extra_where
183 def _info_for_many_to_many_join(self, m2m_field, join_to_query, alias, argument
206 rhs_id_field = join_to_query.model._meta.pk
216 rhs_ids = join_to_query.values_list(rhs_id_field.attname, flat=True)
228 def join_custom_field(self, query_set, join_to_query, alias, argument
244 join_to_query.model)
247 info = self._info_for_many_to_one_join(field, join_to_query, alias)
250 m2m_field=field, join_to_query=join_to_query, alias=alias,
254 m2m_field=field, join_to_query=join_to_query, alias=alias,