﻿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
7585	changeset 7574 broke form.save(commit=False) on FK fields	omat@…	nobody	"When trying to save a ModelForm instance with a not null foreign key without specifying the FK field but saving with commit=False 

{{{
form.save(commit=False)
}}}

raises ValueError as per the following code introduced in the changeset [7574]:

{{{
...
        if value is None and self.field.null == False: 
 		            raise ValueError('Cannot assign None: ""%s.%s"" does not allow null values.' % 
 		                                (instance._meta.object_name, self.field.name)) 
...
}}}

commit=False should be regarded when checking for ValueError."		closed	Database layer (models, ORM)	dev		invalid			Accepted	0	0	0	0	0	0
