﻿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
26985	Document restrictions on fields that can be referenced by ForeignKey.to_field	Baptiste Mispelon	Jonatas CD	"As someone who's never used the feature before (I looked at the documentation while investigating something else), it's not clear to me if there are limitations or restrictions on what kind of fields can be used?

For example, does it need to be an `IntegerField` or can it be any field (trying it out, it seems that a `CharField` works without issues).

One restriction which is caught by Django's validation framework is that the field needs to have `unique=True` (this is the error fields.E311) but I don't know if there are more."	Cleanup/optimization	closed	Documentation	1.10	Normal	fixed			Accepted	1	0	0	0	0	0
