From e7dfaffc372292d8467da8a8be872e9ac9456618 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 19 Nov 2024 11:58:15 +0100 Subject: ✨ base exhibition views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/wizards.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ishtar_common/wizards.py') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 552db0e8d..740a1c18d 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -497,7 +497,9 @@ class Wizard(IshtarWizard): continue if key in self.translated_keys: value = _(value) - if type(value) == bool: + if hasattr(self, f"get_formated_data_for_{key}"): + value = getattr(self, f"get_formated_data_for_{key}")(value) + elif type(value) == bool: if value: value = _("Yes") else: -- cgit v1.2.3