﻿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
11108	add a ModelAdmin.delete_model method, similar to ModelAdmin.save_model (+patch)	thomas	nobody	"When we delete an object, it could be usefull to have the ""request"" attribute. For example to know ""how is doing this delete"", as shown as the exemple with save_model (http://docs.djangoproject.com/en/1.0/ref/contrib/admin/#modeladmin-methods).

My very little patch creates a !ModelAdmin.delete_model(self, request, obj) method, one can override in admin.py.

I use it in a custom log system, where I log all details of all modifications of a object, with the ""modifier"" who make the modification (request.user). I can log creations and modifications with save_model, now I can log delete() too.

Thanks."		closed	contrib.admin	dev		fixed	sprintnov13	jay.wineinger@… Florian Apolloner	Accepted	1	0	1	0	0	0
