﻿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
3978	Admin site : hide a ForeignKey field	Baptiste <baptiste.goupil@…>	Adrian Holovaty	"If you have a model with a ForeignKey that should not be editable by the user, you can try to do :
{{{
author = models.ForeignKey(User, editable=False)
}}}
But you will get ""Key 'author' not found in Form"" on /admin/blog/model/add/.

You can also specify the fields to display with the var ""fields"" of the Admin model and remove the author, but you will get ""Key 'c' not found in Form"" ('c' may vary).

So there is no way to hide this field (that I would like to assign without user's intervention in the method save_add)."		closed	contrib.admin	new-admin		invalid			Unreviewed	0	0	0	0	0	0
