straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

admin batch delete does not go through overridden delete() method #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In admin, doing a batch deletion does not pick up model's overridden delete() 
method.

Original issue reported on code.google.com by nasim.ha...@gmail.com on 28 Jul 2009 at 7:07

GoogleCodeExporter commented 9 years ago
That's because we call db.delete() which never calls your model's delete() 
function. 
You can use Django's signal handlers to catch the deletion event (that's much 
cleaner, 
anyway).

Original comment by wkornew...@gmail.com on 29 Jul 2009 at 1:06