﻿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
26200	Integrity constraint violations when ForeignKey field is not included on the ModelForm	Gary Reynolds	nobody	"Using the `Author` and `Book` example from the `model_forms` tests, `Book` has a `unique_together` constraint on `('title', 'author')`.

If we have a `ModelForm` which only includes the `'title'` field, and use that to update an instance in such a way that it would cause a violation of this constraint, the existing behaviour is to validate the form and allow an update.

Unfortunately this results in an `IntegrityError`.

There is a work around - it's possible to manually catch this in your own clean methods on the model or form."	Bug	closed	Forms	1.8	Normal	duplicate			Unreviewed	1	0	0	0	0	0
