﻿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
13776	is_valid() with null field value on ModelForms from models with non-nullable ForeignKeys causes ValueError	Peter Bengtsson	ANUBHAV JOSHI	"See [http://groups.google.com/group/django-developers/browse_thread/thread/33e41f02c8fc5f7c this email] for a longer description and a traceback.

In summary:
If you try to use a !ModelForm to create a form without the intention of running the {{{save()}}}  method it will raise a !ValueError when you call {{{is_valid()}}}. This is because the !ForeignKey field has a __setattr__ override which prevents it from being None at all, ever. When you're just testing the form it should wrap this in a case so that it doesn't immediately complain. "	Bug	closed	Forms	dev	Normal	fixed	ModelForm ForeignKey	Roman Barczyński Mjumbe Poe anubhav9042@…	Accepted	1	0	0	0	0	0
