'Log that an object will be deleted. Note that this method is called
before the deletion.
The default implementation creates an admin LogEntry object.'

def log_deletion(self, request, object, object_repr):

    from django.contrib.admin.models import LogEntry, DELETION
    LogEntry.objects.log_action(user_id=request.user.pk, content_type_id=ContentType.objects.get_for_model(self.model).pk, object_id=object.pk, object_repr=object_repr, action_flag=DELETION)
