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