def METHOD_NAME(sender, project, user, **kwargs):
    with translation.override(settings.DEFAULT_LANGUAGE):
        message = _('"{username}" published the project "{project_name}".').format(
            username=user.username, project_name=project.name
        )
    models.LogEntry.objects.create(
        message=message,
        action=models.PROJECT_PUBLISHED,
        actor=user,
        project=project,
        module=None,
        component_identifier="",
    )