#NEWLINE# def log_deletion( self , request , object , object_repr ) : #NEWLINE# #INDENT# '\n        Log that an object will be deleted. Note that this method is called\n        before the deletion.\n\n        The default implementation creates an admin LogEntry object.\n        ' #NEWLINE# from django.contrib.admin.models import LogEntry , DELETION #NEWLINE# 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 )