def METHOD_NAME(sender, request, user, **kwargs):
    ip = get_client_ip(request)
    now = timezone.now()
    AuditEntry.objects.create(
        action="登出",
        extra_info=ip,
        user_id=user.id,
        user_name=user.username,
        user_display=user.display,
        action_time=now,
    )