':param field: the ForeignKey field on the related model
:param join_to_query: the query over the related model that we\'re
joining to
:param alias: alias of joined table'

def _info_for_many_to_one_join(self, field, join_to_query, alias):

    info = {}
    rhs_table = join_to_query.model._meta.db_table
    info['rhs_table'] = rhs_table
    info['rhs_column'] = field.column
    info['lhs_column'] = field.rel.get_related_field().column
    rhs_where = join_to_query.query.where
    rhs_where.relabel_aliases({rhs_table: alias})
    compiler = join_to_query.query.get_compiler(using=join_to_query.db)
    (where_clause, values) = rhs_where.as_sql(compiler.quote_name_unless_alias, compiler.connection)
    info['where_clause'] = where_clause
    info['values'] = values
    return info
