On Aug 19, 2008, at 1:02 PM, David Zhou wrote: > > On Aug 19, 2008, at 12:48 PM, Huuuze wrote: > >> The latest Django beta added this method to the admin models: >> >>>> save_model(self, request, obj, form, change) >> >> I have a business case where a "delete_model" method would come in >> very handy. Does anyone know if this will be included in an upcoming >> release? >> >> If not, here is my dilemma. When an item is deleted from the admin >> interface, I need to audit the activity using my custom audit >> methods. One of the attributes in the audit methods is the user ID >> of >> the actor who executed the action. In other words, when a delete >> takes place, I'd like to audit who did it. Unfortunately, I can't >> seem to find a way to access the request object which will provide me >> that information via the admin-related methods. > > What about log_deletion? > > http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py?rev=8266#L404
The link should actually be: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L302 For the latest trunk version. --- David Zhou [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---