code: def action_log_delete(sender, instance, **kwargs):
      
      if instance.pk is not None:
          changes = model_instance_diff(instance, None)
  
          log_entry = LogAction.objects.create_log_action(
              instance=instance,
              action=LogAction.DELETE,
              changes=json.dumps(changes),
          )
docs: Signal receiver that creates a log entry when a model instance is deleted from the database.
  
      Direct use is discouraged, connect your model through :py:func:`actionslog.registry.register` instead.