﻿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
19544	IntegrityError during ManyToMany add() on Oracle or for user-defined through relationships.	German M. Bravo		"I'm frequently getting this exception (""IntegrityError: duplicate key value violates unique constraint..."") a lot in my production server when I do `add()` on a Many To Many relationship. For what I've seen, there seems to be a race condition in `django.db.models.fields.related`'s `ManyRelatedManager._add_items()` between the point `new_ids` is ""calculated"" and the point `bulk_create()` actually creates the tuples in the database. "	Cleanup/optimization	new	Database layer (models, ORM)	dev	Normal			German M. Bravo jon.dufresne@… Дилян Палаузов Simon Charette Florian Demmer	Accepted	0	0	0	0	0	0
