﻿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
22889	Proper handling of to_field in deconstruct for AUTH_USER_MODEL foreign key	Tim Graham	nobody	"`to_field` shouldn't appear in the migration for a `ForeignKey` to `settings.AUTH_USER_MODEL`, otherwise the migration isn't usable if `settings.AUTH_USER_MODEL` uses a primary key with a name different than 'id'.

It's not necessary to include the field name, the default behavior of models.ForeignKey is to look up the primary key field name from the target model.

from [https://github.com/django/django/pull/2840 this pull request]."	Cleanup/optimization	closed	Migrations	1.7-beta-2	Release blocker	fixed			Accepted	0	0	0	0	0	0
