'Provided an existing table and constraint, returns tuple of (foreign
table, column)'

def _lookup_constraint_references(self, table_name, cname):

    db_name = self._get_setting('NAME')
    try:
        return self._constraint_references[db_name][(table_name, cname)]
    except KeyError:
        return None
