﻿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
23076	Cascaded deletion of polymorphic models fails	jernej@…	nobody	"Currently, when deleting polymorphic models (for example by using `django-polymorphic`), the `django.db.models.deletion.Collector` incorrectly assumes that all models are of the same type as the first model in the list. Then, it generates incorrect delete statements when polymorphic models are used which then result in an `IntegrityError` when the transaction is committed.

This is a patch that applies to 1.6.x and master (see pull request [https://github.com/django/django/pull/2940 2940]) that fixes this issue and it is directly based on a patch submitted by Kronuz at the end of ticket #16128."	Bug	closed	Database layer (models, ORM)	dev	Normal	wontfix		mmitar@… james@… tzanke@… Rich Rauenzahn wkoot Simon Brulhart	Accepted	1	0	1	0	0	0
