code: def custom_action(sender, action,
                            instance,
                            user=None,
                            **kwargs):
      
      opts = get_opts(instance)
      model = '.'.join([opts.app_label, opts.object_name])
      distill_model_event(instance, model, action, user_override=user)
docs: Manually trigger a custom action (or even a standard action).