﻿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
26179	Remove null assignment check for non-nullable foreign key fields	Tim Graham	Zach Liu	"As raised in #25349 and [https://groups.google.com/d/topic/django-developers/4UL_FkDXX-w/discussion discussed on django-developers],  the following behavior should be removed:
{{{
>>> obj.fk = None
ValueError('Cannot assign None: ""Obj.fk"" does not allow null values.)
}}}
(i.e. no more exception if you assign `None` to a non-nullable foreign key). It applies to `ForwardManyToOneDescriptor` and `ReverseOneToOneDescriptor`. The change should be documented in the ""backwards-incompatible changes"" section of the release notes."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed			Accepted	1	0	0	0	1	0
