﻿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
27315	IntegrityError: insert or update on table violates foreign key constraint on Django 1.10	Alex Rothberg	nobody	"I am running my test suite on Django 1.10 (it passes on Django 1.09) and am seeing a number of failures like:
{{{
IntegrityError: insert or update on table ""item_storage_books"" violates foreign key constraint ""item_storage_s_capture_user_id_a4181270_fk_users_myuser_user_id""
DETAIL:  Key (capture_user_id)=(alex) is not present in table ""users_myuser"".
}}}

On the Book model I have set db_constaint=False:

{{{
    capture_user = models.ForeignKey(
        settings.AUTH_USER_MODEL, editable=False, null=False, blank=False,
        db_constraint=False, to_field='user_id')

}}}
"	Uncategorized	closed	Uncategorized	1.10	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
