Use Django pre_delete and post_delete signals: http://www.mercurytide.co.uk/whitepapers/django-signals/
or override the delete method: def delete(self): # do something super(type(self), self).delete() # do something Regards, Aidas Bendoraitis aka Archatas On 7/3/07, Bryan <[EMAIL PROTECTED]> wrote: > > Is there an easy way to augment deleting from the admin page. > Specifically, I'm uploading an image and as part of saving the image > model I make a thumbnail (which isn't part of the model). The admin > delete will remove the uploaded image but not the thumbnail, so I'd > like to basically say, whenever you delete the image also delete the > thumbnail. > > I know I can override the admin delete to do whatever I want but I > just want to augment it with one tiny thing, so I'm hoping there is a > clean way. > > Any ideas? > > Thanks. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---