﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5466	ForeignKeys with to_field fail to initialize in PostgreSQL	David Cramer <dcramer@…>	nobody	"The issue seems to arrise when you set a to_field on a ForeignKey. Postgre fails to create the constraint.

This happens in tests/regressiontests/query/ on the Report model

 psycopg.ProgrammingError: ERROR:  there is no unique constraint matching given k
 eys for referenced table ""queries_author""                                       
                                                                                
 ALTER TABLE ""queries_report"" ADD CONSTRAINT creator_id_refs_num_33619fc8 FOREIGN
 KEY (""creator_id"") REF                                                         "		closed	Database layer (models, ORM)	other branch		invalid	qs-rf		Unreviewed	0	0	0	0	0	0
