﻿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
30835	post_delete signal fires before objects are removed from database	hibiscuits	nobody	"This was brought up by someone else in https://code.djangoproject.com/ticket/29319, but it doesn't look like it was fully understood.

In the delete() method at the bottom of db/models/deletion.py, the post_delete signal is sent ''inside'' the atomic transaction block.  This means that if the transaction subsequently fails for whatever reason, the post_delete signal has already been sent, but the object remains in the database.  A simple fix is to move that code outside of the transaction block, so that the deletion will have been transacted without error in order for the post_delete signal to be sent."	Cleanup/optimization	closed	Documentation	2.2	Normal	invalid	post_delete signal transaction on_commit	Simon Charette	Accepted	0	0	0	0	0	0
