From 2c51ca918652581145e34fcf5152a1e046dbe7d9 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Thu, 27 Jun 2024 15:04:32 +0200 Subject: [PATCH] Revert PR #186 Revert "server_environment: Fix value assignation in compute from default" This reverts commit 464f3ec9de8f90d8d22a1e24642ec433054a5833 which would break other modules using server_environment. The original issue must be fixed in mail_environment. --- server_environment/models/server_env_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_environment/models/server_env_mixin.py b/server_environment/models/server_env_mixin.py index 7b2a34c14..b49c35974 100644 --- a/server_environment/models/server_env_mixin.py +++ b/server_environment/models/server_env_mixin.py @@ -254,7 +254,7 @@ def _compute_server_env_from_config(self, field_name, options): def _compute_server_env_from_default(self, field_name, options): if options and options.get("compute_default"): - self[field_name] = getattr(self, options["compute_default"])() + getattr(self, options["compute_default"])() else: default_field = self._server_env_default_fieldname(field_name) if default_field: